]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
selftests/bpf: Drop settimeo in do_test
authorGeliang Tang <tanggeliang@kylinos.cn>
Tue, 26 Mar 2024 10:03:39 +0000 (18:03 +0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Fri, 29 Mar 2024 02:12:15 +0000 (19:12 -0700)
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>
tools/testing/selftests/bpf/prog_tests/bpf_tcp_ca.c

index 2f6b8b2780e6440b227757c23d9c92a3348f769d..077b107130f6b9e2523bde12eae0917ac7c3b8e2 100644 (file)
@@ -98,8 +98,7 @@ static void do_test(const char *tcp_ca, const struct bpf_map *sk_stg_map)
                return;
        }
 
-       if (settcpca(lfd, tcp_ca) || settcpca(fd, tcp_ca) ||
-           settimeo(lfd, 0) || settimeo(fd, 0))
+       if (settcpca(lfd, tcp_ca) || settcpca(fd, tcp_ca))
                goto done;
 
        if (sk_stg_map) {