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 <tanggeliang@kylinos.cn> Link: https://lore.kernel.org/r/dbc3613bee3b1c78f95ac9ff468bf47c92f106ea.1711447102.git.tanggeliang@kylinos.cn Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
This commit is contained in:
committed by
Martin KaFai Lau
parent
e5e1a3aa56
commit
426670929f
@ -98,8 +98,7 @@ static void do_test(const char *tcp_ca, const struct bpf_map *sk_stg_map)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settcpca(lfd, tcp_ca) || settcpca(fd, tcp_ca) ||
|
if (settcpca(lfd, tcp_ca) || settcpca(fd, tcp_ca))
|
||||||
settimeo(lfd, 0) || settimeo(fd, 0))
|
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
if (sk_stg_map) {
|
if (sk_stg_map) {
|
||||||
|
Reference in New Issue
Block a user