summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>2026-08-18 20:43:00 +0200
committerAndrii Nakryiko <andrii@kernel.org>2026-08-21 12:15:06 -0700
commit669e4fa766000ae4137bb02eb22ce75ba78ad32d (patch)
tree0e8ca1ddbd8d669aad7807c799fec7a7ca302153 /scripts
parente40f61a31688898e7cf81e91074a42f805883e4d (diff)
downloadlinux-next-669e4fa766000ae4137bb02eb22ce75ba78ad32d.tar.gz
linux-next-669e4fa766000ae4137bb02eb22ce75ba78ad32d.zip
selftests/bpf: Allocate a larger timeout for connection
Some tests, like tc_tunnel or tc_edt, sporadically fail in CI with the following logs: (network_helpers.c:309: errno: Operation now in progress) \ Failed to connect to server send_and_test_data:FAIL:connect to server unexpected error: -115 This is due to SO_RCVTIMEO and SO_SNDTIMEO being set on the client socket (see settimeo() in client_socket()), allowing connect() to return an error and to set errno to EINPROGRESS instead of ETIMEDOUT. Increasing the timeout value for those tests is likely not a good solution (and it has already been done by commit 2790db208b44 ("selftests/bpf: Improve tc_tunnel test reliability")): some tests expect some data transfer to fail, and so the timeout value would increase overall test execution duration again (not only the connection, but any socket operation). Another solution is to allocate a timeout budget specific to the connection: we can apply a larger timeout only for connections, and once the connection is established, set back the timeout configured through opts->timeout_ms; this would allow connection to succeed under heavy CI load, while keeping timeout reasonable for the rest of the test traffic. Create a dedicated connect helper that sets a large timeout for the connect step, tries to connect, and if successful, finally sets the timeout value to the one configured by the test. Fixes: 99126abec5e5 ("bpf: selftests: A few improvements to network_helpers.c") Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Ihor Solodrai <ihor.solodrai@linux.dev> Link: https://lore.kernel.org/bpf/20260818-tc_tunnel_flaky-v7-1-aec161e74ef2@bootlin.com
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions