Documentation ¶
Index ¶
- Constants
- func GetYusurNicPfIndexByPciAddress(pfPci string) (int, error)
- func GetYusurNicPfPciFromVfPci(vfPciAddress string) (string, error)
- func GetYusurNicVfIndexByPciAddress(vfPciAddress string) (int, error)
- func GetYusurNicVfRepresentor(pfIndex, vfIndex int) string
- func IsYusurSmartNic(pciAddress string) bool
Constants ¶
View Source
const ( HwAddr = "hw" YusurSmartNic = "smart-nic" PlatName = "plat_name" PciSysDir = "/sys/bus/pci/devices" )
Variables ¶
This section is empty.
Functions ¶
func GetYusurNicPfIndexByPciAddress ¶
GetYusurNicPfIndexByPciAddress gets a VF PCI address and returns the correlate PF index.
func GetYusurNicPfPciFromVfPci ¶
GetYusurNicPfPciFromVfPci retrieves the PF PCI address
func GetYusurNicVfIndexByPciAddress ¶
GetYusurNicVfIndexByPciAddress gets a VF PCI address and returns the correlate VF index.
func GetYusurNicVfRepresentor ¶
GetYusurNicVfRepresentor return representor name
func IsYusurSmartNic ¶
IsYusurSmartNic check is Yusur smart Nic
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.