bpf: Add support for non-fix-size percpu mem allocation
authorYonghong Song <yonghong.song@linux.dev>
Sun, 27 Aug 2023 15:27:34 +0000 (08:27 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 8 Sep 2023 15:42:17 +0000 (08:42 -0700)
commit41a5db8d8161457b121a03fde999ff6e00090ee2
tree4474dade0ac40c98c45eff020a62cab62471f525
parent3903802bb99a263a3c26422c3d30a121b1f6f939
bpf: Add support for non-fix-size percpu mem allocation

This is needed for later percpu mem allocation when the
allocation is done by bpf program. For such cases, a global
bpf_global_percpu_ma is added where a flexible allocation
size is needed.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20230827152734.1995725-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf.h
kernel/bpf/core.c
kernel/bpf/memalloc.c