aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorGeliang Tang <[email protected]>2024-05-25 20:08:19 +0800
committerMartin KaFai Lau <[email protected]>2024-05-28 17:53:04 -0700
commited61271af5230cef9b9329bb1eacc1b1a9800d07 (patch)
tree3abbb5d1f2e692d464295709e60f15d9562b1770 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent79b330c57debe6b15f441e999bb62042afd5b08e (diff)
selftests/bpf: Use start_server_str in do_test in bpf_tcp_ca
This patch uses new helper start_server_str() in do_test() in bpf_tcp_ca.c to accept a struct network_helper_opts argument instead of using start_server() and settcpca(). Then change the type of the first paramenter of do_test() into a struct network_helper_opts one. Define its own cb_opts and opts for each test, set its own cc name into cb_opts.cc, and cc_cb() into post_socket_cb callback, then pass it to do_test(). Signed-off-by: Geliang Tang <[email protected]> Link: https://lore.kernel.org/r/6e1b6555e3284e77c8aa60668c61a66c5f99aa37.1716638248.git.tanggeliang@kylinos.cn Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions