* [dts] [PATCH V1] tests/netmap_compat: fix netmap compat failed
@ 2018-01-30 6:50 lu,peipei
2018-01-30 6:52 ` Liu, Yong
0 siblings, 1 reply; 2+ messages in thread
From: lu,peipei @ 2018-01-30 6:50 UTC (permalink / raw)
To: dts; +Cc: lu,peipei
Before scapy send pachket need to time sleep.
Signed-off-by: lu,peipei <peipeix.lu@intel.com>
---
tests/TestSuite_netmap_compat.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_netmap_compat.py b/tests/TestSuite_netmap_compat.py
index 5225a27..9d14163 100644
--- a/tests/TestSuite_netmap_compat.py
+++ b/tests/TestSuite_netmap_compat.py
@@ -81,7 +81,7 @@ class TestNetmapCompat(TestCase):
self.rxItf = self.tester.get_interface(self.tester.get_local_port(self.dut_ports[0]))
self.inst = sniff_packets(self.rxItf)
-
+ time.sleep(1)
self.scapy_send_packet()
out = self.get_tcpdump_package()
@@ -99,7 +99,7 @@ class TestNetmapCompat(TestCase):
self.rxItf = self.tester.get_interface(self.tester.get_local_port(self.dut_ports[1]))
self.inst = sniff_packets(self.rxItf)
-
+ time.sleep(1)
self.scapy_send_packet()
out = self.get_tcpdump_package()
--
1.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH V1] tests/netmap_compat: fix netmap compat failed
2018-01-30 6:50 [dts] [PATCH V1] tests/netmap_compat: fix netmap compat failed lu,peipei
@ 2018-01-30 6:52 ` Liu, Yong
0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2018-01-30 6:52 UTC (permalink / raw)
To: Lu, PeipeiX, dts; +Cc: Lu, PeipeiX
Peipei,
Please check what happened on the tester side. There has been sleep .5 sec in sniff_packets.
If additional timeout is request for certain NIC, timeout value should be changed in sniff_packets function.
Thanks,
Marvin
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lu,peipei
> Sent: Tuesday, January 30, 2018 2:51 PM
> To: dts@dpdk.org
> Cc: Lu, PeipeiX <peipeix.lu@intel.com>
> Subject: [dts] [PATCH V1] tests/netmap_compat: fix netmap compat failed
>
> Before scapy send pachket need to time sleep.
>
> Signed-off-by: lu,peipei <peipeix.lu@intel.com>
> ---
> tests/TestSuite_netmap_compat.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_netmap_compat.py
> b/tests/TestSuite_netmap_compat.py
> index 5225a27..9d14163 100644
> --- a/tests/TestSuite_netmap_compat.py
> +++ b/tests/TestSuite_netmap_compat.py
> @@ -81,7 +81,7 @@ class TestNetmapCompat(TestCase):
> self.rxItf =
> self.tester.get_interface(self.tester.get_local_port(self.dut_ports[0]))
>
> self.inst = sniff_packets(self.rxItf)
> -
> + time.sleep(1)
> self.scapy_send_packet()
>
> out = self.get_tcpdump_package()
> @@ -99,7 +99,7 @@ class TestNetmapCompat(TestCase):
>
> self.rxItf =
> self.tester.get_interface(self.tester.get_local_port(self.dut_ports[1]))
> self.inst = sniff_packets(self.rxItf)
> -
> + time.sleep(1)
> self.scapy_send_packet()
>
> out = self.get_tcpdump_package()
> --
> 1.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-30 6:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-30 6:50 [dts] [PATCH V1] tests/netmap_compat: fix netmap compat failed lu,peipei
2018-01-30 6:52 ` Liu, Yong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).