dpdk

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabledpdkmode

func Enabledpdkmode(dc *Conf, ifname string, dpdkmode bool) error

Enabledpdkmode binds an interface given as ifname string to the dpdk driver in Conf

func SaveDpdkConf

func SaveDpdkConf(cid, dataDir string, dc *Conf) error

SaveDpdkConf takes in container ID, data dir as string and a pointer to Conf then save this Conf in data dir

func ValidateConf

func ValidateConf() error

ValidateConf vaildates dpdk configuration for required fields

Types

type Conf

type Conf struct {
	PCIaddr    string `json:"pci_addr"`
	Ifname     string `json:"ifname"`
	KDriver    string `json:"kernel_driver"`
	DPDKDriver string `json:"dpdk_driver"`
	DPDKtool   string `json:"dpdk_tool"`
	VFID       int    `json:"vfid"`
}

Conf defines configuration related to dpdk driver binding/unbinding

func GetConf

func GetConf(cid, podIfName, dataDir string) (*Conf, error)

GetConf takes in container ID, Pod interface name and data dir as string and returns a pointer to Conf

Jump to

Keyboard shortcuts

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