bpf: selftest: Add test_btf_skc_cls_ingress
This patch attaches a classifier prog to the ingress filter. It exercises the following helpers with different socket pointer types in different logical branches: 1. bpf_sk_release() 2. bpf_sk_assign() 3. bpf_skc_to_tcp_request_sock(), bpf_skc_to_tcp_sock() 4. bpf_tcp_gen_syncookie, bpf_tcp_check_syncookie Signed-off-by:Martin KaFai Lau <kafai@fb.com> Signed-off-by:
Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200925000458.3859627-1-kafai@fb.com
parent
0c402c6c
No related branches found
No related tags found
Showing
- tools/testing/selftests/bpf/bpf_tcp_helpers.h 5 additions, 0 deletionstools/testing/selftests/bpf/bpf_tcp_helpers.h
- tools/testing/selftests/bpf/prog_tests/btf_skc_cls_ingress.c 234 additions, 0 deletionstools/testing/selftests/bpf/prog_tests/btf_skc_cls_ingress.c
- tools/testing/selftests/bpf/progs/test_btf_skc_cls_ingress.c 174 additions, 0 deletionstools/testing/selftests/bpf/progs/test_btf_skc_cls_ingress.c
Loading
Please register or sign in to comment