diff options
| author | Geliang Tang <[email protected]> | 2024-05-25 12:08:15 +0000 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2024-05-29 00:53:03 +0000 |
| commit | ed31adf6874db172e3212ac1ebaf701ed6190650 (patch) | |
| tree | 0217dd38368584252da86ab516bdf3cc99c0f601 /tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c | |
| parent | libbpf: Configure log verbosity with env variable (diff) | |
| download | kernel-ed31adf6874db172e3212ac1ebaf701ed6190650.tar.gz kernel-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 <[email protected]>
Link: https://lore.kernel.org/r/f8bda41c7cb9cb6979b2779f89fb3a684234304f.1716638248.git.tanggeliang@kylinos.cn
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c')
| -rw-r--r-- | tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c b/tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c index 1d3a20f01b60..7cd8be2780ca 100644 --- a/tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c +++ b/tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c @@ -70,7 +70,7 @@ static void *server_thread(void *arg) return (void *)(long)err; } -static int custom_cb(int fd, const struct post_socket_opts *opts) +static int custom_cb(int fd, void *opts) { char buf; int err; |
