bpf: Clean up sockmap related Kconfigs
As suggested by John, clean up sockmap related Kconfigs: Reduce the scope of CONFIG_BPF_STREAM_PARSER down to TCP stream parser, to reflect its name. Make the rest sockmap code simply depend on CONFIG_BPF_SYSCALL and CONFIG_INET, the latter is still needed at this point because of TCP/UDP proto update. And leave CONFIG_NET_SOCK_MSG untouched, as it is used by non-sockmap cases. Signed-off-by:Cong Wang <cong.wang@bytedance.com> Signed-off-by:
Alexei Starovoitov <ast@kernel.org> Reviewed-by:
Lorenz Bauer <lmb@cloudflare.com> Acked-by:
John Fastabend <john.fastabend@gmail.com> Acked-by:
Jakub Sitnicki <jakub@cloudflare.com> Link: https://lore.kernel.org/bpf/20210223184934.6054-2-xiyou.wangcong@gmail.com
Showing
- include/linux/bpf.h 12 additions, 14 deletionsinclude/linux/bpf.h
- include/linux/bpf_types.h 2 additions, 4 deletionsinclude/linux/bpf_types.h
- include/linux/skmsg.h 18 additions, 0 deletionsinclude/linux/skmsg.h
- include/net/tcp.h 9 additions, 7 deletionsinclude/net/tcp.h
- include/net/udp.h 2 additions, 2 deletionsinclude/net/udp.h
- init/Kconfig 1 addition, 0 deletionsinit/Kconfig
- net/Kconfig 1 addition, 5 deletionsnet/Kconfig
- net/core/Makefile 4 additions, 2 deletionsnet/core/Makefile
- net/core/skmsg.c 79 additions, 66 deletionsnet/core/skmsg.c
- net/core/sock_map.c 2 additions, 0 deletionsnet/core/sock_map.c
- net/ipv4/Makefile 1 addition, 1 deletionnet/ipv4/Makefile
- net/ipv4/tcp_bpf.c 2 additions, 2 deletionsnet/ipv4/tcp_bpf.c
Loading
Please register or sign in to comment