Documentation ¶
Index ¶
- func BindVFtoDriver(pciId string, driver string) error
- func BroadcastAddr(n *net.IPNet) net.IP
- func CleanupCoreFiles(corePattern string, maxCoreFiles int) error
- func ClearVppManagerFiles() error
- func CreateInterfaceVF(pciId string) error
- func CreateVppLink() (vpp *vpplink.VppLink, err error)
- func CycleHardwareAddr(hwAddr net.HardwareAddr, n uint8) net.HardwareAddr
- func DecrementIP(ip net.IP) (result net.IP)
- func DeleteInterfaceVF(pciId string) (err error)
- func FetchNodeAnnotations(nodeName string) map[string]string
- func FormatIPNetSlice(lst []net.IPNet) string
- func GetDriverNameFromPci(pciId string) (string, error)
- func GetInterfaceNameFromPci(pciId string) (string, error)
- func GetInterfaceNumVFs(pciId string) (int, error)
- func GetInterfacePciId(interfaceName string) (string, error)
- func GetInterfaceVFPciId(pciId string) (vfPciId string, err error)
- func GetMaxCIDRLen(isv6 bool) int
- func GetMaxCIDRMask(addr net.IP) net.IPMask
- func GetNrHugepages() (int, error)
- func GetOsKernelVersion() (ver *config.KernelVersion, err error)
- func GetnetnsPath(nsName string) string
- func IncrementIP(ip net.IP) (result net.IP)
- func IsDriverLoaded(driver string) (bool, error)
- func IsVfioUnsafeiommu() (bool, error)
- func NetworkAddr(n *net.IPNet) net.IP
- func NewNS(nsName string) (ns.NetNS, error)
- func NormalizeIP(in net.IP) net.IP
- func ParseKernelVersion(versionStr string) (ver *config.KernelVersion, err error)
- func PrintLastBackTrace(coreFile string)
- func RenameInterface(name, newName string) (err error)
- func RouteIsIP6(r *netlink.Route) bool
- func RouteIsLinkLocalUnicast(r *netlink.Route) bool
- func RunBashScript(script string) error
- func SafeGetLink(interfaceName string) (link netlink.Link, err error)
- func SafeSetInterfaceUpByName(interfaceName string) (link netlink.Link, err error)
- func SetCorePattern(corePattern string) error
- func SetInterfaceRxQueues(ifname string, queues int) error
- func SetRLimitMemLock() error
- func SetVFSpoofTrust(ifName string, vf int, spoof bool, trust bool) error
- func SetVfioUnsafeiommu(iommu bool) (err error)
- func SwapDriver(pciDevice, newDriver string, addId bool) error
- func WriteFile(state string, path string) error
- func WriteInfoFile() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindVFtoDriver ¶
func BroadcastAddr ¶
BroadcastAddr returns the last address in the given network, or the broadcast address.
func CleanupCoreFiles ¶ added in v3.25.1
func ClearVppManagerFiles ¶
func ClearVppManagerFiles() error
func CreateInterfaceVF ¶
func CreateVppLink ¶
func CycleHardwareAddr ¶
func CycleHardwareAddr(hwAddr net.HardwareAddr, n uint8) net.HardwareAddr
func DeleteInterfaceVF ¶
func FetchNodeAnnotations ¶
func FormatIPNetSlice ¶
func GetDriverNameFromPci ¶
func GetInterfaceNameFromPci ¶
func GetInterfaceNumVFs ¶
func GetInterfacePciId ¶
func GetInterfaceVFPciId ¶
func GetMaxCIDRLen ¶
func GetNrHugepages ¶
func GetOsKernelVersion ¶
func GetOsKernelVersion() (ver *config.KernelVersion, err error)
func GetnetnsPath ¶
func IsDriverLoaded ¶
func IsVfioUnsafeiommu ¶
func NetworkAddr ¶
NetworkAddr returns the first address in the given network, or the network address.
func NewNS ¶
*
- This function was copied from the following repo [0]
- as we depend on pkg/ns, but it doesnot support netns creation
- [0] github.com/containernetworking/plugins.git:pkg/testutils/netns_linux.go
func ParseKernelVersion ¶
func ParseKernelVersion(versionStr string) (ver *config.KernelVersion, err error)
func PrintLastBackTrace ¶ added in v3.25.1
func PrintLastBackTrace(coreFile string)
func RenameInterface ¶
func RouteIsIP6 ¶
func RouteIsLinkLocalUnicast ¶
func RunBashScript ¶
func SetCorePattern ¶
func SetInterfaceRxQueues ¶
func SetRLimitMemLock ¶
func SetRLimitMemLock() error
func SetVfioUnsafeiommu ¶
func SwapDriver ¶
func WriteInfoFile ¶
func WriteInfoFile() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.