Documentation ¶
Overview ¶
Package config stores runtime configuration state for the Cilium datapath. +groupName=maps
Index ¶
Constants ¶
View Source
const ( // MapName name of map used to pin map for datapath MapName = "cilium_runtime_config" // MaxEntries represents the maximum number of config entries. // Initially defined as 256, so that downgrade from a future version having more than one // entry works without necessarily resizing the map. Entries not known by the datapath // version are simply ignored. MaxEntries = 256 )
Variables ¶
View Source
var Cell = cell.Module( "config-map", "eBPF map config contains runtime configuration state for the Cilium datapath", cell.Provide(newMap), )
Cell initializes and manages the config map.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index uint32
Index is the index to the runtime config array.
All supported indices in one place. Must be in sync with RUNTIME_CONFIG_ enum in bpf/lib/common.h
func (*Index) DeepCopyMapKey ¶
DeepCopyMapKey returns a deep copy of the map key
type Map ¶
type Map interface { // Update writes the given uint64 value to the bpf map at the given index. Update(index Index, val uint64) error }
Map provides access to the eBPF map configmap.
type Value ¶
type Value uint64
Value is the generic datapath runtime config value.
func (*Value) DeepCopyMapValue ¶
DeepCopyMapValue returns a deep copy of the map value
func (*Value) GetValuePtr ¶
GetValuePtr returns the unsafe pointer to the BPF value.
Click to show internal directories.
Click to hide internal directories.