subfunctions

package module
v0.0.0-...-05d18cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCdqSubfunction

func CreateCdqSubfunction(parentPci string, pfnum string, sfnum string) error

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

func DeleteCdqSubfunction(portIndex string) error

DeleteCdqSubfunction takes the port index of a subfunction, deactivates and deletes it

func GetCdqPfnum

func GetCdqPfnum(netdev string) (string, error)

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

func GetCdqPortIndex(netdev string) (string, error)

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

func IsCdqSubfunction(name string) (bool, error)

IsCdqSubfunction takes a netdev name and returns true if is a CDQ subfunction.

func NumAvailableCdqSubfunctions

func NumAvailableCdqSubfunctions(pci string) (int, error)

NumAvailableCdqSubfunctions takes the PCI of a physical port and returns how many unused CDQ subfunctions are available

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL