Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DpdkDrivers = []string{"igb_uio", "vfio-pci", "uio_pci_generic"}
Functions ¶
func BindDefaultDriver ¶
BindDefaultDriver bind driver for one device Bind the device given by "pciAddr" to the default driver
func BindDpdkDriver ¶
BindDpdkDriver bind dpdk driver for one device Bind the device given by "pciAddr" to the driver "driver"
func DiscoverSriovDevices ¶
func DiscoverSriovDevices() ([]sriovnetworkv1.InterfaceExt, error)
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
func New ¶
func New( nodeName string, client snclientset.Interface, kubeClient *kubernetes.Clientset, exitCh chan<- error, stopCh <-chan struct{}, refreshCh chan<- struct{}, ) *Daemon
type NodeStateStatusWriter ¶
type NodeStateStatusWriter struct {
// contains filtered or unexported fields
}
func NewNodeStateStatusWriter ¶
func NewNodeStateStatusWriter(c snclientset.Interface, n string) *NodeStateStatusWriter
NewNodeStateStatusWriter Create a new NodeStateStatusWriter
func (*NodeStateStatusWriter) Run ¶
func (nm *NodeStateStatusWriter) Run(stop <-chan struct{}, refresh <-chan struct{})
Run reads from the writer channel and sets the interface status. It will return if the stop channel is closed. Intended to be run via a goroutine.
Click to show internal directories.
Click to hide internal directories.