]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Drop struct post_socket_opts
authorGeliang Tang <tanggeliang@kylinos.cn>
Sat, 25 May 2024 12:08:15 +0000 (20:08 +0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Wed, 29 May 2024 00:53:03 +0000 (17:53 -0700)
commited31adf6874db172e3212ac1ebaf701ed6190650
tree0217dd38368584252da86ab516bdf3cc99c0f601
parenteb4e7726279a344c82e3c23be396bcfd0a4d5669
selftests/bpf: Drop struct post_socket_opts

It's not possible to have one generic/common "struct post_socket_opts"
for all tests. It's better to have the individual test define its own
callback opts struct.

So this patch drops struct post_socket_opts, and changes the second
parameter of post_socket_cb as "void *" type.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Link: https://lore.kernel.org/r/f8bda41c7cb9cb6979b2779f89fb3a684234304f.1716638248.git.tanggeliang@kylinos.cn
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/network_helpers.c
tools/testing/selftests/bpf/network_helpers.h
tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c
tools/testing/selftests/bpf/test_tcp_check_syncookie_user.c