aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2021-08-24 17:30:19 +0000
committerAlexei Starovoitov <[email protected]>2021-08-26 00:40:35 +0000
commit3d7789831df9bda0941bda41cface6687b7c3e04 (patch)
tree3f7c2b4f1a5f423c8035314d2a61993e90c9f463 /tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c
parentbpf: selftests: Add sk_state to bpf_tcp_helpers.h (diff)
downloadkernel-3d7789831df9bda0941bda41cface6687b7c3e04.tar.gz
kernel-3d7789831df9bda0941bda41cface6687b7c3e04.zip
bpf: selftests: Add connect_to_fd_opts to network_helpers
The next test requires to setsockopt(TCP_CONGESTION) before connect(), so a new arg is needed for the connect_to_fd() to specify the cc's name. This patch adds a new "struct network_helper_opts" for the future option needs. It starts with the "cc" and "timeout_ms" option. A new helper connect_to_fd_opts() is added to take the new "const struct network_helper_opts *opts" as an arg. Signed-off-by: Martin KaFai Lau <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c')
0 files changed, 0 insertions, 0 deletions