netdevice

package
v0.0.0-...-a586aca Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVhostNetDeviceSpec

func GetVhostNetDeviceSpec() []*pluginapi.DeviceSpec

GetVhostNetDeviceSpec returns an instance of DeviceSpec for vhost-net

func NewNadUtils

func NewNadUtils() types.NadUtils

NewNadUtils returns a new NadUtils

func NewNetDeviceProvider

func NewNetDeviceProvider(rf types.ResourceFactory) types.DeviceProvider

NewNetDeviceProvider DeviceProvider implementation from netDeviceProvider instance

func NewNetResourcePool

func NewNetResourcePool(nadutils types.NadUtils, rc *types.ResourceConfig, apiDevices map[string]*pluginapi.Device,
	devicePool map[string]types.PciDevice) types.ResourcePool

NewNetResourcePool returns an instance of resourcePool

func NewPciNetDevice

func NewPciNetDevice(dev *ghw.PCIDevice, rFactory types.ResourceFactory, rc *types.ResourceConfig) (types.PciNetDevice, error)

NewPciNetDevice returns an instance of PciNetDevice interface

func NewRdmaInfoProvider

func NewRdmaInfoProvider(rdmaSpec types.RdmaSpec) types.DeviceInfoProvider

NewRdmaInfoProvider returns a new Rdma Information Provider

func NewRdmaSpec

func NewRdmaSpec(pciAddrs string) types.RdmaSpec

NewRdmaSpec returns the RdmaSpec

func NewVhostNetInfoProvider

func NewVhostNetInfoProvider() types.DeviceInfoProvider

NewVhostNetInfoProvider returns a new Vhost Information Provider

func VhostNetDeviceExist

func VhostNetDeviceExist() bool

VhostNetDeviceExist returns true if /dev/vhost-net exists

Types

This section is empty.

Jump to

Keyboard shortcuts

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