Skip to content

Commit 4266709

Browse files
Geliang TangMartin KaFai Lau
Geliang Tang
authored and
Martin KaFai Lau
committed
selftests/bpf: Drop settimeo in do_test
settimeo is invoked in start_server() and in connect_fd_to_fd() already, no need to invoke settimeo(lfd, 0) and settimeo(fd, 0) in do_test() anymore. This patch drops them. Signed-off-by: Geliang Tang <[email protected]> Link: https://lore.kernel.org/r/dbc3613bee3b1c78f95ac9ff468bf47c92f106ea.1711447102.git.tanggeliang@kylinos.cn Signed-off-by: Martin KaFai Lau <[email protected]>
1 parent e5e1a3a commit 4266709

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ static void do_test(const char *tcp_ca, const struct bpf_map *sk_stg_map)
9898
return;
9999
}
100100

101-
if (settcpca(lfd, tcp_ca) || settcpca(fd, tcp_ca) ||
102-
settimeo(lfd, 0) || settimeo(fd, 0))
101+
if (settcpca(lfd, tcp_ca) || settcpca(fd, tcp_ca))
103102
goto done;
104103

105104
if (sk_stg_map) {

0 commit comments

Comments
 (0)