bpf: Support kptrs in percpu hashmap and percpu LRU hashmap
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sat, 25 Feb 2023 15:40:08 +0000 (16:40 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 1 Mar 2023 18:24:33 +0000 (10:24 -0800)
commit65334e64a493c6a0976de7ad56bf8b7a9ff04b4a
treeefe7294c013053de96ffa3d42d6cb02b56344d43
parentc4b5c5bad9f07e9074c7abde3289de71c4acac48
bpf: Support kptrs in percpu hashmap and percpu LRU hashmap

Enable support for kptrs in percpu BPF hashmap and percpu BPF LRU
hashmap by wiring up the freeing of these kptrs from percpu map
elements.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20230225154010.391965-2-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/hashtab.c
kernel/bpf/syscall.c