Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MapDef

Parameters to create an eBPF map.

After the map is created, the parameters may be different because of rounding, truncating or type-dependent behaviour.

Hierarchy

Index

Properties

flags?: number

Flags specified on map creation, see MapFlags

ifindex?: number

For offloading, ifindex of network device to create the map on (since Linux 4.16)

innerMap?: number | MapDef | MapRef

For map-in-map types: parameters for the inner map, or FD of an existing map to clone parameters from. The passed map's lifetime isn't affected in any way.

keySize: number

Size of every key, in bytes

maxEntries: number

Maximum amount of entries: the meaning of this is type-dependent

name?: string

Map name (might get truncated if longer than OBJ_NAME_LEN) (since Linux 4.15)

numaNode?: number

NUMA node on which to store the map (since Linux 4.15)

type: MapType

Map type. This decides the available operations and their semantics. Keep in mind that not all of the types may be supported by your kernel.

valueSize: number

Size of every value, in bytes

Generated using TypeDoc