utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPciAddress

func GetPciAddress(ifName string, vf int) (string, error)

GetPciAddress takes in a interface(ifName) and VF id and returns returns its pci addr as string

func GetPfName

func GetPfName(vf string) (string, error)

GetPfName returns PF net device name of a given VF pci address

func GetSharedPF

func GetSharedPF(ifName string) (string, error)

GetSharedPF takes in VF name(ifName) as string and returns the other VF name that shares same PCI address as string

func GetSriovNumVfs

func GetSriovNumVfs(ifName string) (int, error)

GetSriovNumVfs takes in a PF name(ifName) as string and returns number of VF configured as int

func GetVFLinkNames

func GetVFLinkNames(pfName string, vfID int) ([]string, error)

GetVFLinkNames returns VF's network interface name given it's PF name as string and VF id as int

func GetVfid

func GetVfid(addr string, pfName string) (int, error)

GetVfid takes in VF's PCI address(addr) and pfName as string and returns VF's ID as int

Types

This section is empty.

Jump to

Keyboard shortcuts

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