Documentation
¶
Overview ¶
Package fwdp implements the forwarder's data plane.
Index ¶
- Variables
- type Config
- type Crypto
- type CryptoConfig
- type DataPlane
- type Fwd
- func (fwd *Fwd) Close() error
- func (fwd *Fwd) Cs() *cs.Cs
- func (fwd *Fwd) Init(lc eal.LCore, pcctCfg pcct.Config, qcfgI, qcfgD, qcfgN iface.PktQueueConfig, ...) (e error)
- func (fwd *Fwd) NumaSocket() eal.NumaSocket
- func (fwd *Fwd) Pit() *pit.Pit
- func (fwd *Fwd) ReadCounters() (cnt FwdCounters)
- func (fwd *Fwd) SetFib(replica unsafe.Pointer, index int)
- func (fwd *Fwd) String() string
- type FwdCounters
- type Input
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GqlInputNodeType *gqlserver.NodeType GqlInputType *graphql.Object GqlFwdCountersType *graphql.Object GqlFwdNodeType *gqlserver.NodeType GqlFwdType *graphql.Object GqlDataPlaneType *graphql.Object )
GraphQL types.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Ndt ndt.Config `json:"ndt,omitempty"` Fib fibdef.Config `json:"fib,omitempty"` Pcct pcct.Config `json:"pcct,omitempty"` Suppress pit.SuppressConfig `json:"suppress,omitempty"` Crypto CryptoConfig `json:"crypto,omitempty"` FwdInterestQueue iface.PktQueueConfig `json:"fwdInterestQueue,omitempty"` FwdDataQueue iface.PktQueueConfig `json:"fwdDataQueue,omitempty"` FwdNackQueue iface.PktQueueConfig `json:"fwdNackQueue,omitempty"` LatencySampleFreq *int `json:"latencySampleFreq,omitempty"` // latency sample frequency, between 0 and 30 }
Config contains data plane configuration.
type CryptoConfig ¶
type CryptoConfig struct { InputCapacity int `json:"inputCapacity,omitempty"` OpPoolCapacity int `json:"opPoolCapacity,omitempty"` }
CryptoConfig contains crypto helper thread configuration.
type DataPlane ¶
type DataPlane struct {
// contains filtered or unexported fields
}
DataPlane represents the forwarder data plane.
var ( // GqlDataPlane is the DataPlane instance accessible via GraphQL. GqlDataPlane *DataPlane )
type Fwd ¶
Fwd represents a forwarding thread.
func (*Fwd) Init ¶
func (fwd *Fwd) Init(lc eal.LCore, pcctCfg pcct.Config, qcfgI, qcfgD, qcfgN iface.PktQueueConfig, latencySampleFreq int, suppressCfg pit.SuppressConfig) (e error)
Init initializes the forwarding thread. Excluding FIB.
func (*Fwd) NumaSocket ¶
func (fwd *Fwd) NumaSocket() eal.NumaSocket
NumaSocket implements fib.LookupThread.
func (*Fwd) ReadCounters ¶
func (fwd *Fwd) ReadCounters() (cnt FwdCounters)
ReadCounters retrieves forwarding thread counters.
type FwdCounters ¶
type FwdCounters struct { NNoFibMatch uint64 `json:"nNoFibMatch"` // Interests dropped due to no FIB match NDupNonce uint64 `json:"nDupNonce"` // Interests dropped due to duplicate nonce NSgNoFwd uint64 `json:"nSgNoFwd"` // Interests not forwarded by strategy NNackMismatch uint64 `json:"nNackMismatch"` // Nacks dropped due to outdated nonce // contains filtered or unexported fields }
FwdCounters contains forwarding thread counters.
Click to show internal directories.
Click to hide internal directories.