Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetPfVfLinkNetNs ¶
func SetPfVfLinkNetNs(pfPciAddr, netNsPath string, pollInterval time.Duration, quitCh chan bool, doneCh chan error)
SetPfVfLinkNetNs requires physical function (PF) PCI address and a string to a network namespace in which to add any associated virtual functions (VF). VFs must be attached to kernel driver to provide links. Attaching VFs to vfio-pci driver is not supported. PF is set to target network namespace. Polling interval is required and this period will determine how often the VFs Links are checked to ensure they are in the target network namespace. Two channels are required - one for informing the func to end and one to inform the caller of an error or if the function has ended. It is this func responsibility to cleanup the done channel and callers responsibility to cleanup quit channel.
Types ¶
This section is empty.