-
- Downloads
bpf: Refactor some inode/task/sk storage functions for reuse
Refactor codes so that inode/task/sk storage implementation can maximally share the same code. I also added some comments in new function bpf_local_storage_unlink_nolock() to make codes easy to understand. There is no functionality change. Acked-by:David Vernet <void@manifault.com> Signed-off-by:
Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/r/20221026042845.672944-1-yhs@fb.com Signed-off-by:
Alexei Starovoitov <ast@kernel.org>
Showing
- include/linux/bpf_local_storage.h 7 additions, 10 deletionsinclude/linux/bpf_local_storage.h
- kernel/bpf/bpf_inode_storage.c 3 additions, 35 deletionskernel/bpf/bpf_inode_storage.c
- kernel/bpf/bpf_local_storage.c 121 additions, 69 deletionskernel/bpf/bpf_local_storage.c
- kernel/bpf/bpf_task_storage.c 3 additions, 35 deletionskernel/bpf/bpf_task_storage.c
- net/core/bpf_sk_storage.c 3 additions, 32 deletionsnet/core/bpf_sk_storage.c
Loading
Please register or sign in to comment