]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: mirror_gre_changes: Fix TTL test
authorPetr Machata <petrm@mellanox.com>
Thu, 31 Jan 2019 22:35:15 +0000 (22:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2019 23:26:36 +0000 (15:26 -0800)
commitd67924ee4557e12672da5313923496638664791e
tree0f0bf13db76bb5d4f6c9a58c1cf4a59cc1098773
parent1bd655d76b7ea208935f89afad9915608b58c402
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>
tools/testing/selftests/net/forwarding/mirror_gre_changes.sh