summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/bpf.h
diff options
context:
space:
mode:
authorMauricio Vasquez B2018-10-18 15:16:30 +0200
committerAlexei Starovoitov2018-10-19 22:24:31 +0200
commitbd513cd08f10cbe28856f99ae951e86e86803861 (patch)
tree4af4c4453badd34c259ad0c8f3140216c22519e2 /include/uapi/linux/bpf.h
parentbpf: add queue and stack maps (diff)
downloadkernel-qcow2-linux-bd513cd08f10cbe28856f99ae951e86e86803861.tar.gz
kernel-qcow2-linux-bd513cd08f10cbe28856f99ae951e86e86803861.tar.xz
kernel-qcow2-linux-bd513cd08f10cbe28856f99ae951e86e86803861.zip
bpf: add MAP_LOOKUP_AND_DELETE_ELEM syscall
The previous patch implemented a bpf queue/stack maps that provided the peek/pop/push functions. There is not a direct relationship between those functions and the current maps syscalls, hence a new MAP_LOOKUP_AND_DELETE_ELEM syscall is added, this is mapped to the pop operation in the queue/stack maps and it is still to implement in other kind of maps. Signed-off-by: Mauricio Vasquez B <mauricio.vasquez@polito.it> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/uapi/linux/bpf.h')
-rw-r--r--include/uapi/linux/bpf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index 70082cb626b4..a2fb333290dc 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -103,6 +103,7 @@ enum bpf_cmd {
BPF_BTF_LOAD,
BPF_BTF_GET_FD_BY_ID,
BPF_TASK_FD_QUERY,
+ BPF_MAP_LOOKUP_AND_DELETE_ELEM,
};
enum bpf_map_type {