summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/udpgso_bench_rx.c
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2024-02-01 21:42:38 +0300
committerJakub Kicinski <kuba@kernel.org>2024-02-03 08:10:36 +0300
commitcb9f4a30fb85e1f4f149ada595a67899adb3db19 (patch)
tree45c00df610937dfb86507b04f6791de695c48ec2 /tools/testing/selftests/net/udpgso_bench_rx.c
parent2e7d3b67630dfd8f178c41fa2217aa00e79a5887 (diff)
downloadlinux-cb9f4a30fb85e1f4f149ada595a67899adb3db19.tar.xz
selftests: net: cut more slack for gro fwd tests.
The udpgro_fwd.sh self-tests are somewhat unstable. There are a few timing constraints the we struggle to meet on very slow environments. Instead of skipping the whole tests in such envs, increase the test resilience WRT very slow hosts: increase the inter-packets timeouts, avoid resetting the counters every second and finally disable reduce the background traffic noise. Tested with: for I in $(seq 1 100); do ./tools/testing/selftests/kselftest_install/run_kselftest.sh \ -t net:udpgro_fwd.sh || exit -1 done in a slow environment. Fixes: a062260a9d5f ("selftests: net: add UDP GRO forwarding self-tests") Signed-off-by: Paolo Abeni <pabeni@redhat.com> Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://lore.kernel.org/r/f4b6b11064a0d39182a9ae6a853abae3e9b4426a.1706812005.git.pabeni@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/udpgso_bench_rx.c')
-rw-r--r--tools/testing/selftests/net/udpgso_bench_rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/udpgso_bench_rx.c b/tools/testing/selftests/net/udpgso_bench_rx.c
index f35a924d4a30..1cbadd267c96 100644
--- a/tools/testing/selftests/net/udpgso_bench_rx.c
+++ b/tools/testing/selftests/net/udpgso_bench_rx.c
@@ -375,7 +375,7 @@ static void do_recv(void)
do_flush_udp(fd);
tnow = gettimeofday_ms();
- if (tnow > treport) {
+ if (!cfg_expected_pkt_nr && tnow > treport) {
if (packets)
fprintf(stderr,
"%s rx: %6lu MB/s %8lu calls/s\n",