summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/network_helpers.c
diff options
context:
space:
mode:
authorGeliang Tang <tanggeliang@kylinos.cn>2024-05-25 20:08:15 +0800
committerMartin KaFai Lau <martin.lau@kernel.org>2024-05-28 17:53:03 -0700
commited31adf6874db172e3212ac1ebaf701ed6190650 (patch)
tree0217dd38368584252da86ab516bdf3cc99c0f601 /tools/testing/selftests/bpf/network_helpers.c
parenteb4e7726279a344c82e3c23be396bcfd0a4d5669 (diff)
downloadlinux-ed31adf6874db172e3212ac1ebaf701ed6190650.tar.gz
linux-ed31adf6874db172e3212ac1ebaf701ed6190650.tar.bz2
linux-ed31adf6874db172e3212ac1ebaf701ed6190650.zip
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>
Diffstat (limited to 'tools/testing/selftests/bpf/network_helpers.c')
-rw-r--r--tools/testing/selftests/bpf/network_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/network_helpers.c b/tools/testing/selftests/bpf/network_helpers.c
index 35250e6cde7f..4d776b78929c 100644
--- a/tools/testing/selftests/bpf/network_helpers.c
+++ b/tools/testing/selftests/bpf/network_helpers.c
@@ -133,7 +133,7 @@ int start_server(int family, int type, const char *addr_str, __u16 port,
return __start_server(type, (struct sockaddr *)&addr, addrlen, &opts);
}
-static int reuseport_cb(int fd, const struct post_socket_opts *opts)
+static int reuseport_cb(int fd, void *opts)
{
int on = 1;