projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96049f3
)
tools/bpf: sync uapi/bpf.h
author
Alexei Starovoitov
<ast@kernel.org>
Thu, 31 Jan 2019 23:40:10 +0000
(15:40 -0800)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Fri, 1 Feb 2019 19:55:39 +0000
(20:55 +0100)
add BPF_F_LOCK definition to tools/include/uapi/linux/bpf.h
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/include/uapi/linux/bpf.h
patch
|
blob
|
blame
|
history
diff --git
a/tools/include/uapi/linux/bpf.h
b/tools/include/uapi/linux/bpf.h
index 86f7c438d40f725107521c1fac8b0f038954d695..1777fa0c61e4a2dd9f15b1908a91a8582c8cad98 100644
(file)
--- a/
tools/include/uapi/linux/bpf.h
+++ b/
tools/include/uapi/linux/bpf.h
@@
-267,6
+267,7
@@
enum bpf_attach_type {
#define BPF_ANY 0 /* create new element or update existing */
#define BPF_NOEXIST 1 /* create new element if it didn't exist */
#define BPF_EXIST 2 /* update existing element */
+#define BPF_F_LOCK 4 /* spin_lock-ed map_lookup/map_update */
/* flags for BPF_MAP_CREATE command */
#define BPF_F_NO_PREALLOC (1U << 0)