selftests/bpf: Use start_test in test_dctcp_fallback in bpf_tcp_ca
authorGeliang Tang <tanggeliang@kylinos.cn>
Thu, 30 May 2024 07:41:10 +0000 (15:41 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 6 Jun 2024 21:04:05 +0000 (23:04 +0200)
commit224eeb5598c30ee835dc9fea4c7ad85a8fb7eda4
tree19e1f3cd1cec9de326f3728328f7680ee6f484e6
parentfee97d0c9a14b5dd5cce0ec1df3a54a6b963f40c
selftests/bpf: Use start_test in test_dctcp_fallback in bpf_tcp_ca

The newly added helper start_test() can be used in test_dctcp_fallback()
too, to replace start_server_str() and connect_to_fd_opts(). In that
way, two network_helper_opts srv_opts and cli_opts are used instead of
the previously shared opts.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/792ca3bb013fa06e618176da02d75e4f79a76733.1717054461.git.tanggeliang@kylinos.cn
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c