[dts] [PATCH V1] tests/netmap_compat: fix netmap compat failed
Liu, Yong
yong.liu at intel.com
Tue Jan 30 07:52:23 CET 2018
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 at dpdk.org] On Behalf Of lu,peipei
> Sent: Tuesday, January 30, 2018 2:51 PM
> To: dts at dpdk.org
> Cc: Lu, PeipeiX <peipeix.lu at 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 at 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
More information about the dts
mailing list