From cf9142006bfa242d2bbf5916749e42327103f803 Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Sat, 15 Feb 2020 20:58:44 +0100 Subject: sys/linux: add map batch operations Signed-off-by: Paul Chaignon --- sys/linux/bpf_arm.const | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/linux/bpf_arm.const') diff --git a/sys/linux/bpf_arm.const b/sys/linux/bpf_arm.const index 6036764b7..d91b35b66 100644 --- a/sys/linux/bpf_arm.const +++ b/sys/linux/bpf_arm.const @@ -78,12 +78,15 @@ BPF_LINE_INFO_SIZE = 16 BPF_LIRC_MODE2 = 16 BPF_LSH0 = 6 BPF_MAP_CREATE = 0 +BPF_MAP_DELETE_BATCH = 27 BPF_MAP_DELETE_ELEM = 3 BPF_MAP_FREEZE = 22 BPF_MAP_GET_FD_BY_ID = 14 BPF_MAP_GET_NEXT_ID = 12 BPF_MAP_GET_NEXT_KEY = 4 +BPF_MAP_LOOKUP_AND_DELETE_BATCH = 25 BPF_MAP_LOOKUP_AND_DELETE_ELEM = 21 +BPF_MAP_LOOKUP_BATCH = 24 BPF_MAP_LOOKUP_ELEM = 1 BPF_MAP_TYPE_ARRAY = 2 BPF_MAP_TYPE_ARRAY_OF_MAPS = 12 @@ -111,6 +114,7 @@ BPF_MAP_TYPE_STACK = 23 BPF_MAP_TYPE_STACK_TRACE = 7 BPF_MAP_TYPE_STRUCT_OPS = 26 BPF_MAP_TYPE_XSKMAP = 17 +BPF_MAP_UPDATE_BATCH = 26 BPF_MAP_UPDATE_ELEM = 2 BPF_MEM0 = 3 BPF_MOD0 = 9 -- cgit mrf-deployment