selftest/bpf: make test_tc_tunnel and test_tc_edt more robust to CI load - #13294
selftest/bpf: make test_tc_tunnel and test_tc_edt more robust to CI load#13294kernel-patches-daemon-bpf[bot] wants to merge 2 commits into
Conversation
|
Upstream branch: a13307e |
AI reviewed your patch. Please fix the bug or email reply why it's not a bug. In-Reply-To-Subject: |
AI reviewed your patch. Please fix the bug or email reply why it's not a bug. In-Reply-To-Subject: |
|
Forwarding comment 5290807030 via email |
|
Forwarding comment 5290856690 via email |
b73246f to
98d32d5
Compare
|
Upstream branch: a13307e |
3cabab8 to
5dbe775
Compare
98d32d5 to
51ea595
Compare
|
Upstream branch: a13307e |
5dbe775 to
947032e
Compare
51ea595 to
3083173
Compare
|
Upstream branch: a13307e |
947032e to
c82fcaa
Compare
3083173 to
6d6454e
Compare
BPF subsystem requires multi-line comments to have the opening /* start on its own line. Update multi-line comments in network_helpers.c to follow this requirement. Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
|
Upstream branch: a13307e |
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 2790db2
("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.
Set a larger SO_SNDTIMEO/SO_RCVTIMEO for the connection step, and reset
it back to the timeout configured by the test once the connection has
succeeded.
Fixes: 99126ab ("bpf: selftests: A few improvements to network_helpers.c")
Acked-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
c82fcaa to
80573d6
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1145882 irrelevant now. Closing PR. |
Pull request for series with
subject: selftest/bpf: make test_tc_tunnel and test_tc_edt more robust to CI load
version: 5
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1145882