[PATCH lnst] recipes: switchdev: l2-021-span: Wait before killing tcpdump

Petr Machata petrm at mellanox.com
Tue May 1 03:12:36 AEST 2018


When tcpdump is killed immediately after "ping" finishes, some of the
tcpdump output may be cut short.

Signed-off-by: Petr Machata <petrm at mellanox.com>
---
 recipes/switchdev/l2-021-span.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes/switchdev/l2-021-span.py b/recipes/switchdev/l2-021-span.py
index e14b1e4..568b71c 100644
--- a/recipes/switchdev/l2-021-span.py
+++ b/recipes/switchdev/l2-021-span.py
@@ -117,6 +117,7 @@ def do_task(ctl, hosts, ifaces, aliases):
             assert_procs += run_packet_assert(out_num, m2_if2, m1_if1, m2_if1,
                                               aliases["ipv"])
             tl.ping_simple(m1_if1, m2_if1, count=10)
+            sleep(1)
             for assert_proc in assert_procs:
                 assert_proc.intr()
 
-- 
2.4.11



More information about the Linux-mlxsw mailing list