Home
last modified time | relevance | path

Searched hist:"3 d7789831df9bda0941bda41cface6687b7c3e04" (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/bpf/
H A Dnetwork_helpers.hdiff 3d7789831df9bda0941bda41cface6687b7c3e04 Tue Aug 24 19:30:19 CEST 2021 Martin KaFai Lau <kafai@fb.com> 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 <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210824173019.3977910-1-kafai@fb.com
H A Dnetwork_helpers.cdiff 3d7789831df9bda0941bda41cface6687b7c3e04 Tue Aug 24 19:30:19 CEST 2021 Martin KaFai Lau <kafai@fb.com> 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 <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210824173019.3977910-1-kafai@fb.com