diff options
author | Alexei Starovoitov <ast@kernel.org> | 2019-01-31 18:40:10 -0500 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-02-01 14:55:39 -0500 |
commit | e44ac9a22b19eec92d10c7b7c69ad6f1995b4dcf (patch) | |
tree | 3d51e654d4c8bc2cc29d764d263c15366f178d1b | |
parent | 96049f3afd50fe8db69fa0068cdca822e747b1e4 (diff) |
tools/bpf: sync uapi/bpf.h
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>
-rw-r--r-- | tools/include/uapi/linux/bpf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 86f7c438d40f..1777fa0c61e4 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h | |||
@@ -267,6 +267,7 @@ enum bpf_attach_type { | |||
267 | #define BPF_ANY 0 /* create new element or update existing */ | 267 | #define BPF_ANY 0 /* create new element or update existing */ |
268 | #define BPF_NOEXIST 1 /* create new element if it didn't exist */ | 268 | #define BPF_NOEXIST 1 /* create new element if it didn't exist */ |
269 | #define BPF_EXIST 2 /* update existing element */ | 269 | #define BPF_EXIST 2 /* update existing element */ |
270 | #define BPF_F_LOCK 4 /* spin_lock-ed map_lookup/map_update */ | ||
270 | 271 | ||
271 | /* flags for BPF_MAP_CREATE command */ | 272 | /* flags for BPF_MAP_CREATE command */ |
272 | #define BPF_F_NO_PREALLOC (1U << 0) | 273 | #define BPF_F_NO_PREALLOC (1U << 0) |