]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Introduce BPF_F_CPU and BPF_F_ALL_CPUS flags
authorLeon Hwang <leon.hwang@linux.dev>
Wed, 7 Jan 2026 02:20:16 +0000 (10:20 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 7 Jan 2026 04:48:32 +0000 (20:48 -0800)
commit2b421662c7887a0649fe409155a1f101562d0fa9
treeb7cca23b038d790a105c94d23e9b8ffbec1f5f24
parenta8d506759231124efb911a3bd14d1ec2d9de15a1
bpf: Introduce BPF_F_CPU and BPF_F_ALL_CPUS flags

Introduce BPF_F_CPU and BPF_F_ALL_CPUS flags and check them for
following APIs:

* 'map_lookup_elem()'
* 'map_update_elem()'
* 'generic_map_lookup_batch()'
* 'generic_map_update_batch()'

And, get the correct value size for these APIs.

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