Documentation ¶
Index ¶
- Constants
- type AFPacketDriver
- func (d *AFPacketDriver) CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) (err error)
- func (d *AFPacketDriver) GetDefaultRxMode() types.RxMode
- func (d *AFPacketDriver) IsSupported(warn bool) bool
- func (d *AFPacketDriver) PreconfigureLinux() error
- func (d *AFPacketDriver) RestoreLinux(allInterfacesPhysical bool)
- type AFXDPDriver
- type AVFDriver
- func (d *AVFDriver) CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) (err error)
- func (d *AVFDriver) IsSupported(warn bool) (supported bool)
- func (d *AVFDriver) PreconfigureLinux() (err error)
- func (d *AVFDriver) RestoreLinux(allInterfacesPhysical bool)
- type DPDKDriver
- func (d *DPDKDriver) CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) (err error)
- func (d *DPDKDriver) IsSupported(warn bool) (supported bool)
- func (d *DPDKDriver) PreconfigureLinux() (err error)
- func (d *DPDKDriver) RestoreLinux(allInterfacesPhysical bool)
- func (d *DPDKDriver) UpdateVppConfigFile(template string) string
- type DefaultDriver
- func (d *DefaultDriver) CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) (err error)
- func (d *DefaultDriver) IsSupported(warn bool) bool
- func (d *DefaultDriver) PreconfigureLinux() (err error)
- func (d *DefaultDriver) RestoreLinux(allInterfacesPhysical bool)
- type RDMADriver
- func (d *RDMADriver) CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) (err error)
- func (d *RDMADriver) IsSupported(warn bool) (supported bool)
- func (d *RDMADriver) PreconfigureLinux() (err error)
- func (d *RDMADriver) RestoreLinux(allInterfacesPhysical bool)
- type UplinkDriver
- type UplinkDriverData
- type VirtioDriver
- func (d *VirtioDriver) CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) (err error)
- func (d *VirtioDriver) IsSupported(warn bool) (supported bool)
- func (d *VirtioDriver) PreconfigureLinux() (err error)
- func (d *VirtioDriver) RestoreLinux(allInterfacesPhysical bool)
- type Vmxnet3Driver
- func (d *Vmxnet3Driver) CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) (err error)
- func (d *Vmxnet3Driver) IsSupported(warn bool) (supported bool)
- func (d *Vmxnet3Driver) PreconfigureLinux() (err error)
- func (d *Vmxnet3Driver) RestoreLinux(allInterfacesPhysical bool)
Constants ¶
View Source
const ( NATIVE_DRIVER_NONE = "none" NATIVE_DRIVER_AF_PACKET = "af_packet" NATIVE_DRIVER_AF_XDP = "af_xdp" NATIVE_DRIVER_VIRTIO = "virtio" NATIVE_DRIVER_AVF = "avf" NATIVE_DRIVER_DPDK = "dpdk" NATIVE_DRIVER_RDMA = "rdma" NATIVE_DRIVER_VMXNET3 = "vmxnet3" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AFPacketDriver ¶
type AFPacketDriver struct {
UplinkDriverData
}
func NewAFPacketDriver ¶
func NewAFPacketDriver(params *config.VppManagerParams, conf *config.LinuxInterfaceState, spec *config.UplinkInterfaceSpec) *AFPacketDriver
func (*AFPacketDriver) CreateMainVppInterface ¶
func (d *AFPacketDriver) CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) (err error)
func (*AFPacketDriver) GetDefaultRxMode ¶ added in v3.25.1
func (d *AFPacketDriver) GetDefaultRxMode() types.RxMode
We prefer defaulting to adaptive, but af_packet only supports interrupt or polling
func (*AFPacketDriver) IsSupported ¶
func (d *AFPacketDriver) IsSupported(warn bool) bool
func (*AFPacketDriver) PreconfigureLinux ¶
func (d *AFPacketDriver) PreconfigureLinux() error
func (*AFPacketDriver) RestoreLinux ¶
func (d *AFPacketDriver) RestoreLinux(allInterfacesPhysical bool)
type AFXDPDriver ¶
type AFXDPDriver struct {
UplinkDriverData
}
func NewAFXDPDriver ¶
func NewAFXDPDriver(params *config.VppManagerParams, conf *config.LinuxInterfaceState, spec *config.UplinkInterfaceSpec) *AFXDPDriver
func (*AFXDPDriver) CreateMainVppInterface ¶
func (d *AFXDPDriver) CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) (err error)
func (*AFXDPDriver) IsSupported ¶
func (d *AFXDPDriver) IsSupported(warn bool) bool
func (*AFXDPDriver) PreconfigureLinux ¶
func (d *AFXDPDriver) PreconfigureLinux() error
func (*AFXDPDriver) RestoreLinux ¶
func (d *AFXDPDriver) RestoreLinux(allInterfacesPhysical bool)
type AVFDriver ¶
type AVFDriver struct { UplinkDriverData // contains filtered or unexported fields }
func NewAVFDriver ¶
func NewAVFDriver(params *config.VppManagerParams, conf *config.LinuxInterfaceState, spec *config.UplinkInterfaceSpec) *AVFDriver
func (*AVFDriver) CreateMainVppInterface ¶
func (*AVFDriver) IsSupported ¶
func (*AVFDriver) PreconfigureLinux ¶
func (*AVFDriver) RestoreLinux ¶
type DPDKDriver ¶
type DPDKDriver struct {
UplinkDriverData
}
func NewDPDKDriver ¶
func NewDPDKDriver(params *config.VppManagerParams, conf *config.LinuxInterfaceState, spec *config.UplinkInterfaceSpec) *DPDKDriver
func (*DPDKDriver) CreateMainVppInterface ¶
func (d *DPDKDriver) CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) (err error)
func (*DPDKDriver) IsSupported ¶
func (d *DPDKDriver) IsSupported(warn bool) (supported bool)
func (*DPDKDriver) PreconfigureLinux ¶
func (d *DPDKDriver) PreconfigureLinux() (err error)
func (*DPDKDriver) RestoreLinux ¶
func (d *DPDKDriver) RestoreLinux(allInterfacesPhysical bool)
func (*DPDKDriver) UpdateVppConfigFile ¶
func (d *DPDKDriver) UpdateVppConfigFile(template string) string
type DefaultDriver ¶
type DefaultDriver struct {
UplinkDriverData
}
func NewDefaultDriver ¶
func NewDefaultDriver(params *config.VppManagerParams, conf *config.LinuxInterfaceState, spec *config.UplinkInterfaceSpec) *DefaultDriver
func (*DefaultDriver) CreateMainVppInterface ¶
func (d *DefaultDriver) CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) (err error)
func (*DefaultDriver) IsSupported ¶
func (d *DefaultDriver) IsSupported(warn bool) bool
func (*DefaultDriver) PreconfigureLinux ¶
func (d *DefaultDriver) PreconfigureLinux() (err error)
func (*DefaultDriver) RestoreLinux ¶
func (d *DefaultDriver) RestoreLinux(allInterfacesPhysical bool)
type RDMADriver ¶
type RDMADriver struct {
UplinkDriverData
}
func NewRDMADriver ¶
func NewRDMADriver(params *config.VppManagerParams, conf *config.LinuxInterfaceState, spec *config.UplinkInterfaceSpec) *RDMADriver
func (*RDMADriver) CreateMainVppInterface ¶
func (d *RDMADriver) CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) (err error)
func (*RDMADriver) IsSupported ¶
func (d *RDMADriver) IsSupported(warn bool) (supported bool)
func (*RDMADriver) PreconfigureLinux ¶
func (d *RDMADriver) PreconfigureLinux() (err error)
func (*RDMADriver) RestoreLinux ¶
func (d *RDMADriver) RestoreLinux(allInterfacesPhysical bool)
type UplinkDriver ¶
type UplinkDriver interface { PreconfigureLinux() error CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) error RestoreLinux(allInterfacesPhysical bool) IsSupported(warn bool) bool GetName() string UpdateVppConfigFile(template string) string GetDefaultRxMode() types.RxMode }
func NewUplinkDriver ¶
func NewUplinkDriver(name string, params *config.VppManagerParams, conf *config.LinuxInterfaceState, spec *config.UplinkInterfaceSpec) (d UplinkDriver)
func SupportedUplinkDrivers ¶
func SupportedUplinkDrivers(params *config.VppManagerParams, conf *config.LinuxInterfaceState, spec *config.UplinkInterfaceSpec) []UplinkDriver
type UplinkDriverData ¶
type UplinkDriverData struct {
// contains filtered or unexported fields
}
func (*UplinkDriverData) GetDefaultRxMode ¶ added in v3.25.1
func (d *UplinkDriverData) GetDefaultRxMode() types.RxMode
func (*UplinkDriverData) GetName ¶
func (d *UplinkDriverData) GetName() string
func (*UplinkDriverData) TagMainInterface ¶
func (*UplinkDriverData) UpdateVppConfigFile ¶
func (d *UplinkDriverData) UpdateVppConfigFile(template string) string
type VirtioDriver ¶
type VirtioDriver struct {
UplinkDriverData
}
func NewVirtioDriver ¶
func NewVirtioDriver(params *config.VppManagerParams, conf *config.LinuxInterfaceState, spec *config.UplinkInterfaceSpec) *VirtioDriver
func (*VirtioDriver) CreateMainVppInterface ¶
func (d *VirtioDriver) CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) (err error)
func (*VirtioDriver) IsSupported ¶
func (d *VirtioDriver) IsSupported(warn bool) (supported bool)
func (*VirtioDriver) PreconfigureLinux ¶
func (d *VirtioDriver) PreconfigureLinux() (err error)
func (*VirtioDriver) RestoreLinux ¶
func (d *VirtioDriver) RestoreLinux(allInterfacesPhysical bool)
type Vmxnet3Driver ¶
type Vmxnet3Driver struct {
UplinkDriverData
}
func NewVmxnet3Driver ¶
func NewVmxnet3Driver(params *config.VppManagerParams, conf *config.LinuxInterfaceState, spec *config.UplinkInterfaceSpec) *Vmxnet3Driver
func (*Vmxnet3Driver) CreateMainVppInterface ¶
func (d *Vmxnet3Driver) CreateMainVppInterface(vpp *vpplink.VppLink, vppPid int, uplinkSpec *config.UplinkInterfaceSpec) (err error)
func (*Vmxnet3Driver) IsSupported ¶
func (d *Vmxnet3Driver) IsSupported(warn bool) (supported bool)
func (*Vmxnet3Driver) PreconfigureLinux ¶
func (d *Vmxnet3Driver) PreconfigureLinux() (err error)
func (*Vmxnet3Driver) RestoreLinux ¶
func (d *Vmxnet3Driver) RestoreLinux(allInterfacesPhysical bool)
Click to show internal directories.
Click to hide internal directories.