]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/bpf: Add some tests with new bpf_program__attach_sockmap() APIs
authorYonghong Song <yonghong.song@linux.dev>
Wed, 10 Apr 2024 04:35:47 +0000 (21:35 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 11 Apr 2024 02:52:25 +0000 (19:52 -0700)
commit8ba218e625f0dfb3ef46fe0721dcdf565726ff76
treec6b821d619c3bd94494c91cdca2e1fb4b7147eec
parenta15d58b2bc82abd8c4c994af158b0410424a18d3
selftests/bpf: Add some tests with new bpf_program__attach_sockmap() APIs

Add a few more tests in sockmap_basic.c and sockmap_listen.c to
test bpf_link based APIs for SK_MSG and SK_SKB programs.
Link attach/detach/update are all tested.

All tests are passed.

Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Reviewed-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20240410043547.3738448-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
tools/testing/selftests/bpf/prog_tests/sockmap_listen.c
tools/testing/selftests/bpf/progs/test_skmsg_load_helpers.c
tools/testing/selftests/bpf/progs/test_sockmap_pass_prog.c
tools/testing/selftests/bpf/progs/test_sockmap_skb_verdict_attach.c