Home
last modified time | relevance | path

Searched hist:db2c5bfc (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dmirror_lib.shdb2c5bfc Thu Jan 31 16:35:17 CST 2019 Petr Machata <petrm@mellanox.com> selftests: forwarding: mirror_lib: Wait for tardy mirrored packets

When running in an environment with poor performance (such as a
simulator), processing mirrored packets can take a while. Evaluating the
condition too soon leads to spurious "seen 9, expected 10" failures as
the last packet doesn't have enough time to get mirrored and the mirror
to arrive and bump the observed counters.

Wait for one ping interval before evaluating the test.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
db2c5bfc Thu Jan 31 16:35:17 CST 2019 Petr Machata <petrm@mellanox.com> selftests: forwarding: mirror_lib: Wait for tardy mirrored packets

When running in an environment with poor performance (such as a
simulator), processing mirrored packets can take a while. Evaluating the
condition too soon leads to spurious "seen 9, expected 10" failures as
the last packet doesn't have enough time to get mirrored and the mirror
to arrive and bump the observed counters.

Wait for one ping interval before evaluating the test.

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