Documentation ¶
Index ¶
Constants ¶
View Source
const ( SingleTaggedInjectNextCpu = iota SingleTaggedInjectNextFirstIxge )
Inject ports for fe1: allow both cpu (pcie) & 10g ixge ports for injects.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
type Platform struct { Version uint BaseEthernetAddress ethernet.Address NEthernetAddress uint Init func() QsfpModules map[SwitchPort]*sfp.QsfpModule PlatformConfig }
Platform configuration for FE1 based systems.
type PlatformConfig ¶
type PlatformConfig struct { KernelIxgbe bool KernelIxgbevf bool // Reset switch via gpio hard reset pin. DisableGpioSwitchReset bool // Reset switch via cpu soft reset. EnableCpuSwitchReset bool // Enable using PCI MSI interrupt for fe1 switch. EnableMsiInterrupt bool UseCpuForPuntAndInject bool PortConfig PortProvisionConfig }
type PortProvision ¶
type PortProvisionConfig ¶
type PortProvisionConfig struct {
Ports []PortProvision
}
type SwitchPort ¶
type SwitchPort struct {
Switch, Port uint8
}
Click to show internal directories.
Click to hide internal directories.