diff options
author | Ido Schimmel <idosch@nvidia.com> | 2024-03-04 11:56:08 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-03-05 09:18:04 -0800 |
commit | 748d27447daa3f2bdf519f2a97647ff69fd1b70b (patch) | |
tree | f9a3eccb342d57f6f4f69981b3c456863ecc7c49 /tools/testing/selftests/net/forwarding/gre_multipath.sh | |
parent | selftests: forwarding: Remove IPv6 L3 multipath hash tests (diff) | |
download | wireguard-linux-748d27447daa3f2bdf519f2a97647ff69fd1b70b.tar.xz wireguard-linux-748d27447daa3f2bdf519f2a97647ff69fd1b70b.zip |
selftests: forwarding: Parametrize mausezahn delay
The various multipath tests use mausezahn to generate different flows
and check how they are distributed between the available nexthops. The
tool is currently invoked with an hard coded transmission delay of 1 ms.
This is unnecessary when the tests are run with veth pairs and
needlessly prolongs the tests.
Parametrize this delay and default it to 0 us. It can be overridden
using the forwarding.config file. On my system, this reduces the run
time of router_multipath.sh by 93%.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/20240304095612.462900-3-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/forwarding/gre_multipath.sh')
-rwxr-xr-x | tools/testing/selftests/net/forwarding/gre_multipath.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/forwarding/gre_multipath.sh b/tools/testing/selftests/net/forwarding/gre_multipath.sh index a8d8e8b3dc81..57531c1d884d 100755 --- a/tools/testing/selftests/net/forwarding/gre_multipath.sh +++ b/tools/testing/selftests/net/forwarding/gre_multipath.sh @@ -220,7 +220,7 @@ multipath4_test() ip vrf exec v$h1 \ $MZ $h1 -q -p 64 -A 192.0.2.1 -B 192.0.2.18 \ - -d 1msec -t udp "sp=1024,dp=0-32768" + -d $MZ_DELAY -t udp "sp=1024,dp=0-32768" local t1_111=$(tc_rule_stats_get $ul2 111 ingress) local t1_222=$(tc_rule_stats_get $ul2 222 ingress) |