]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Introduce internal bpf_map_check_op_flags helper function
authorLeon Hwang <leon.hwang@linux.dev>
Tue, 25 Nov 2025 14:58:50 +0000 (22:58 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 25 Nov 2025 23:27:48 +0000 (15:27 -0800)
commit8f6ddc0587606c4be7ffcbdb20a4a99647e0c362
treed0cb29a327e3ba86a62d4979487761d8fc8b8c50
parent8c868a34ea851713eca6bb90db111c7bf091b34b
bpf: Introduce internal bpf_map_check_op_flags helper function

It is to unify map flags checking for lookup_elem, update_elem,
lookup_batch and update_batch APIs.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
Link: https://lore.kernel.org/r/20251125145857.98134-2-leon.hwang@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf.h
kernel/bpf/syscall.c