Skip to content

Commit

Permalink
Add feature test for BPF_F_INNER_MAP maps
Browse files Browse the repository at this point in the history
Introduced in
torvalds/linux@4a8f87e.

In Cilium, following the merge of cilium/cilium#15546, we need to add
this feature test as Maglev mode uses inner maps (map-in-map).

Signed-off-by: Chris Tarazi <chris@isovalent.com>
  • Loading branch information
christarazi authored and lmb committed Jun 23, 2021
1 parent c911548 commit 3890705
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions unix/types_linux.go
Expand Up @@ -32,6 +32,7 @@ const (
BPF_F_WRONLY_PROG = linux.BPF_F_WRONLY_PROG
BPF_F_SLEEPABLE = linux.BPF_F_SLEEPABLE
BPF_F_MMAPABLE = linux.BPF_F_MMAPABLE
BPF_F_INNER_MAP = linux.BPF_F_INNER_MAP
BPF_OBJ_NAME_LEN = linux.BPF_OBJ_NAME_LEN
BPF_TAG_SIZE = linux.BPF_TAG_SIZE
SYS_BPF = linux.SYS_BPF
Expand Down
1 change: 1 addition & 0 deletions unix/types_other.go
Expand Up @@ -32,6 +32,7 @@ const (
BPF_F_WRONLY_PROG = 0
BPF_F_SLEEPABLE = 0
BPF_F_MMAPABLE = 0
BPF_F_INNER_MAP = 0
BPF_OBJ_NAME_LEN = 0x10
BPF_TAG_SIZE = 0x8
SYS_BPF = 321
Expand Down

0 comments on commit 3890705

Please sign in to comment.