netns

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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