# Packages

No description provided by the author

# Functions

DetectPluginWatchMode returns true if plugins registry directory exist.
DevlinkGetDDPProfiles returns DDP for selected device.
DevlinkGetDeviceInfoByNameAndKeys returns values for selected keys in device info.
GetAcpiIndex returns the ACPI index attached to a pci device from its pci address.
GetDDPProfiles returns running DDP profile name if available.
GetDevNode returns the numa node of a PCI device, -1 if none is specified or error.
GetDriverName returns current driver attached to a pci device from its pci address.
GetNetlinkProvider will be invoked by functions in other packages that would need access to the netlink library.
GetNetNames returns host net interface names as string for a PCI device from its pci address.
GetPciAddrFromVFID returns PCI address for VF ID.
GetPfAddr returns SRIOV PF pci address if a device is VF given its pci address.
GetPfEswitchMode returns PF's eswitch mode for the given VF If device is not VF then it will return its own eswitch mode.
GetPfName returns SRIOV PF name for the given VF If device is not VF then it will return empty string.
GetPfNameFromAuxDev returns netdevice name of the PF associated with the provided auxiliary device name.
GetPKey returns IB Partition Key for the given IB device If device is not IB device or has no PKey then it will return empty string.
GetRdmaProvider will be invoked by functions in other packages that would need access to the vdpa library methods.
GetSriovnetProvider will be invoked by functions in other packages that would need access to the sriovnet library methods.
GetSriovVFcapacity returns SRIOV VF capacity.
GetUIODeviceFile returns a vfio device files for vfio-pci bound PCI device's PCI address.
GetVdpaProvider will be invoked by functions in other packages that would need access to the vdpa library methods.
GetVFconfigured returns number of VF configured for a PF.
GetVFID returns VF ID index (within specific PF) based on PCI address.
GetVFIODeviceFile returns a vfio device files for vfio-pci bound PCI device's PCI address.
GetVFList returns a List containing PCI addr for all VF discovered in a given PF.
HasDefaultRoute returns true if PCI network device is default route interface.
IsDDPToolSupportedByDevice checks if DDPTool can be used with device.
IsDevlinkDDPSupportedByDevice checks if DDP of device can be acquired with devlink info command.
IsNetlinkStatusUp returns 'false' if 'operstate' is not "up" for a Linux network device.
IsSriovPF check if a pci device SRIOV capable given its pci address.
IsSriovVF check if a pci device has link to a PF.
NormalizeProductName returns product name cropped to fit into the length of maxProductName if it is bigger.
NormalizeVendorName returns vendor name cropped to fit into the length of maxVendorName if it is bigger.
ParseAuxDeviceType returns auxiliary device type parsed from device ID.
ParseDeviceID returns device ID parsed from the string as 64bit integer.
SetDefaultMockNetlinkProvider sets a mocked instance of NetlinkProvider to be used by unit test in other packages.
SetNetlinkProviderInst sets a passed instance of NetlinkProvider to be used by unit test in other packages.
SetRdmaProviderInst method would be used by unit tests in other packages.
SetSriovnetProviderInst method would be used by unit tests in other packages.
SetVdpaProviderInst method would be used by unit tests in other packages.
SriovConfigured returns true if sriov_numvfs reads > 0 else false.
ValidPciAddr validates PciAddr given as string with host system.
ValidResourceName returns true if it contains permitted characters otherwise false.

# Variables

ErrKeyNotFound error when key is not found in the parsed response.
ErrProfileNameNotFound error when DDPTool is supported, but package name is empty.

# Structs

DDPInfo is the toplevel container of DDPInventory.
DDPInventory holds a device's DDP information.
DDPpackage holds information about DDP profile itself.
FakeFilesystem allows to setup isolated fake files structure used for the tests.

# Interfaces

NetlinkProvider is a wrapper type over netlink library.
RdmaProvider is a wrapper type over rdmamap library.
SriovnetProvider is a wrapper type over sriovnet library.
VdpaProvider is a wrapper type over go-vdpa library.