summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/forwarding/router_multipath.sh
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2024-08-07 17:13:48 +0300
committerJakub Kicinski <kuba@kernel.org>2024-08-13 03:50:34 +0300
commit110d3ffe9d2b42c04faaf92c3fc627004e3328c6 (patch)
tree6e3b5c8e3b9495d5b3121203f2c5173c70b164ef /tools/testing/selftests/net/forwarding/router_multipath.sh
parentb72a6a7ab9573e06d5c2fcb92eaa28614a735bfd (diff)
downloadlinux-110d3ffe9d2b42c04faaf92c3fc627004e3328c6.tar.xz
selftests: router_mpath: Sleep after MZ
In the context of an offloaded datapath, it may take a while for the ip link stats to be updated. This causes the test to fail when MZ_DELAY is too low. Sleep after the packets are sent for the link stats to get up to date. Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://patch.msgid.link/8b1971d948273afd7de2da3d6a2ba35200540e55.1723036486.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/forwarding/router_multipath.sh')
-rwxr-xr-xtools/testing/selftests/net/forwarding/router_multipath.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/router_multipath.sh b/tools/testing/selftests/net/forwarding/router_multipath.sh
index e2be354167a1..46f365b557b7 100755
--- a/tools/testing/selftests/net/forwarding/router_multipath.sh
+++ b/tools/testing/selftests/net/forwarding/router_multipath.sh
@@ -180,6 +180,7 @@ multipath4_test()
ip vrf exec vrf-h1 $MZ $h1 -q -p 64 -A 192.0.2.2 -B 198.51.100.2 \
-d $MZ_DELAY -t udp "sp=1024,dp=0-32768"
+ sleep 1
t1_rp12=$(link_stats_tx_packets_get $rp12)
t1_rp13=$(link_stats_tx_packets_get $rp13)
@@ -217,6 +218,7 @@ multipath6_test()
$MZ $h1 -6 -q -p 64 -A 2001:db8:1::2 -B 2001:db8:2::2 \
-d $MZ_DELAY -t udp "sp=1024,dp=0-32768"
+ sleep 1
t1_rp12=$(link_stats_tx_packets_get $rp12)
t1_rp13=$(link_stats_tx_packets_get $rp13)