Documentation
¶
Index ¶
- func CreateCdqSubfunction(parentPci string, pfnum string, sfnum string) error
- func DeleteCdqSubfunction(portIndex string) error
- func GetCdqPfnum(netdev string) (string, error)
- func GetCdqPortIndex(netdev string) (string, error)
- func IsCdqSubfunction(name string) (bool, error)
- func NumAvailableCdqSubfunctions(pci string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCdqSubfunction ¶
CreateCdqSubfunction takes the PCI address of a port and a subfunction number It creates that subfunction on top of that port and activates it
func DeleteCdqSubfunction ¶
DeleteCdqSubfunction takes the port index of a subfunction, deactivates and deletes it
func GetCdqPfnum ¶
GetCdqPfnum takes a netdev name and returns the physical port number / pfnum Note this function only works on physical devices and CDQ subfunctions Other netdevs will return a "device not found by devlink" error
func GetCdqPortIndex ¶
GetCdqPortIndex takes a netdev name and returns the port index (pci/sfnum) Note this function only works on physical devices and CDQ subfunctions Other netdevs will return a "device not found by devlink" error
func IsCdqSubfunction ¶
IsCdqSubfunction takes a netdev name and returns true if is a CDQ subfunction.
func NumAvailableCdqSubfunctions ¶
NumAvailableCdqSubfunctions takes the PCI of a physical port and returns how many unused CDQ subfunctions are available
Types ¶
This section is empty.