[PATCH bpf v3 2/2] selftests/bpf: add connect timeout to test_tc_edt
From: Alexis Lothoré (eBPF Foundation)
Date: Tue Aug 11 2026 - 10:42:16 EST
Now that the connect helpers from network_helpers.c poll the connect
status when connect() returns EINPROGRESS, make sure that test_tc_edt
benefits from this polling by setting a timeout value for connection.
Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@xxxxxxxxxxx>
---
tools/testing/selftests/bpf/prog_tests/test_tc_edt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/bpf/prog_tests/test_tc_edt.c b/tools/testing/selftests/bpf/prog_tests/test_tc_edt.c
index 462512fb191f..8ac3caa3d091 100644
--- a/tools/testing/selftests/bpf/prog_tests/test_tc_edt.c
+++ b/tools/testing/selftests/bpf/prog_tests/test_tc_edt.c
@@ -109,7 +109,7 @@ static void run_test(void)
nstoken = open_netns(CLIENT_NS);
if (!ASSERT_OK_PTR(nstoken, "open client ns"))
return;
- client_fd = connect_to_fd(server_fd, 0);
+ client_fd = connect_to_fd(server_fd, TIMEOUT_MS);
if (!ASSERT_OK_FD(client_fd, "connect client"))
return;
--
2.55.0