Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: forwarding: mirror_gre_changes: Fix TTL test

When running in a simulator, the TTL change takes a while to settle and
during this time the performance of the packet processing is lowered.
The resulting instability leads to ping sending more packets as it
assumes some have been dropped. This then leads to regular spurious
failures as more packets than expected are observed.

Sleep a bit to give the system time to stabilize.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Petr Machata and committed by
David S. Miller
3dc178a9 f3b05bb8

+1
+1
tools/testing/selftests/net/forwarding/mirror_gre_changes.sh
··· 79 79 mirror_test v$h1 192.0.2.1 192.0.2.2 $h3 77 0 80 80 81 81 ip link set dev $tundev type $type ttl 50 82 + sleep 2 82 83 mirror_test v$h1 192.0.2.1 192.0.2.2 $h3 77 10 83 84 84 85 ip link set dev $tundev type $type ttl 100