[dts] [PATCH V1] fix rxtx_callbacks failed on i350

Liu, Yong yong.liu at intel.com
Tue Oct 31 10:01:09 CET 2017


Peipei,
There has been slightly sleep in sniff_packets function. If 0.5 second is not enough in your environment, you can add a little more like one second in sniff_packets. I think there's no need to wait five seconds.

Thanks,
Marvin

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of lu,peipei
> Sent: Monday, October 30, 2017 3:49 PM
> To: dts at dpdk.org
> Cc: Lu, PeipeiX <peipeix.lu at intel.com>
> Subject: [dts] [PATCH V1] fix rxtx_callbacks failed on i350
> 
> After running sniff packet command,need to add sleeping time.
> 
> Signed-off-by: lu,peipei <peipeix.lu at intel.com>
> ---
>  tests/TestSuite_rxtx_callbacks.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/TestSuite_rxtx_callbacks.py
> b/tests/TestSuite_rxtx_callbacks.py
> index dd968a4..d652378 100644
> --- a/tests/TestSuite_rxtx_callbacks.py
> +++ b/tests/TestSuite_rxtx_callbacks.py
> @@ -78,6 +78,7 @@ class TestRxtxCallbacks(TestCase):
>          self.iface_port1 =
> self.tester.get_interface(self.tester.get_local_port(self.dut_ports[1]))
> 
>          self.inst_port1 = sniff_packets(self.iface_port1)
> +        time.sheep(5)
>          self.scapy_send_packet(self.iface_port0)
> 
>          out_port1 = self.get_tcpdump_package(self.inst_port1)
> --
> 1.9.3



More information about the dts mailing list