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>
This commit is contained in:
Родитель
f3b05bb819
Коммит
3dc178a9ef
|
@ -79,6 +79,7 @@ test_span_gre_ttl()
|
|||
mirror_test v$h1 192.0.2.1 192.0.2.2 $h3 77 0
|
||||
|
||||
ip link set dev $tundev type $type ttl 50
|
||||
sleep 2
|
||||
mirror_test v$h1 192.0.2.1 192.0.2.2 $h3 77 10
|
||||
|
||||
ip link set dev $tundev type $type ttl 100
|
||||
|
|
Загрузка…
Ссылка в новой задаче