Documentation
¶
Index ¶
Constants ¶
View Source
const ( DataInterfaceSwIfIndex = uint32(1) // Assumption: the VPP config ensures this is true VppConfigFile = "/etc/vpp/startup.conf" VppConfigExecFile = "/etc/vpp/startup.exec" VppManagerStatusFile = "/var/run/vpp/vppmanagerstatus" VppManagerTapIdxFile = "/var/run/vpp/vppmanagertap0" VppManagerLinuxMtu = "/var/run/vpp/vppmanagerlinuxmtu" VppApiSocket = "/var/run/vpp/vpp-api.sock" CalicoVppPidFile = "/var/run/vpp/calico_vpp.pid" VppPath = "/usr/bin/vpp" HostIfName = "vpptap0" HostIfTag = "hosttap" VppSigKillTimeout = 2 )
View Source
const ( DRIVER_UIO_PCI_GENERIC = "uio_pci_generic" DRIVER_VFIO_PCI = "vfio-pci" DRIVER_VIRTIO_PCI = "virtio-pci" DRIVER_I40E = "i40e" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterfaceConfig ¶
type InterfaceConfig struct { PciId string Driver string IsUp bool Addresses []netlink.Addr Routes []netlink.Route HardwareAddr net.HardwareAddr PromiscOn bool NumTxQueues int NumRxQueues int DoSwapDriver bool Hasv4 bool Hasv6 bool NodeIP4 string NodeIP6 string Mtu int }
func (*InterfaceConfig) AddressString ¶
func (c *InterfaceConfig) AddressString() string
func (*InterfaceConfig) RouteString ¶
func (c *InterfaceConfig) RouteString() string
type KernelVersion ¶
func (*KernelVersion) IsAtLeast ¶
func (ver *KernelVersion) IsAtLeast(other *KernelVersion) bool
func (*KernelVersion) String ¶
func (ver *KernelVersion) String() string
type VppManagerParams ¶
type VppManagerParams struct { VppStartupSleepSeconds int MainInterface string ConfigExecTemplate string ConfigTemplate string InitScriptTemplate string NodeName string CorePattern string RxMode types.RxMode TapRxMode types.RxMode ServiceCIDRs []net.IPNet VppIpConfSource string ExtraAddrCount int NativeDriver string TapRxQueueSize int TapTxQueueSize int RxQueueSize int TxQueueSize int TapMtu int NumRxQueues int NewDriverName string DefaultGWs []net.IP IfConfigSavePath string EnableGSO bool /* Capabilities */ LoadedDrivers map[string]bool KernelVersion *KernelVersion AvailableHugePages int VfioUnsafeiommu bool }
Click to show internal directories.
Click to hide internal directories.