Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DPUtilsLib ¶
type DPUtilsLib interface { // GetNetNames returns host net interface names as string for a PCI device from its pci address GetNetNames(pciAddr string) ([]string, error) // GetDriverName returns current driver attached to a pci device from its pci address GetDriverName(pciAddr string) (string, error) // GetVFID returns VF ID index (within specific PF) based on PCI address GetVFID(pciAddr string) (vfID int, err error) // IsSriovVF check if a pci device has link to a PF IsSriovVF(pciAddr string) bool // IsSriovPF check if a pci device SRIOV capable given its pci address IsSriovPF(pciAddr string) bool // GetSriovVFcapacity returns SRIOV VF capacity GetSriovVFcapacity(pf string) int // GetVFconfigured returns number of VF configured for a PF GetVFconfigured(pf string) int // SriovConfigured returns true if sriov_numvfs reads > 0 else false SriovConfigured(addr string) bool // GetVFList returns a List containing PCI addr for all VF discovered in a given PF GetVFList(pf string) (vfList []string, err error) }
func New ¶
func New() DPUtilsLib
Click to show internal directories.
Click to hide internal directories.