[dts] [PATCH V1] tests/rxtx_offload: add -c params when use tcpdump read pcap file
Tu, Lijuan
lijuan.tu at intel.com
Wed Jun 12 08:45:45 CEST 2019
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of lihong
> Sent: Thursday, June 6, 2019 7:03 AM
> To: dts at dpdk.org
> Cc: Peng, Yuan <yuan.peng at intel.com>; Ma, LihongX <lihongx.ma at intel.com>
> Subject: [dts] [PATCH V1] tests/rxtx_offload: add -c params when use
> tcpdump read pcap file
>
> The tcpdump capture all the tx packets from testpmd, read the pcap file will
> use too much time, and it not need to read all the packet in the pcap file.
> Using 1024 packets to verify the tx packets is enough.
>
> Signed-off-by: lihong <lihongx.ma at intel.com>
> ---
> tests/TestSuite_rxtx_offload.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offload.py
> index 53f7cf9..0ae83f4 100644
> --- a/tests/TestSuite_rxtx_offload.py
> +++ b/tests/TestSuite_rxtx_offload.py
> @@ -269,7 +269,7 @@ class TestRxTx_Offload(TestCase):
> def get_tcpdump_package(self):
>
> self.tester.send_expect("killall tcpdump", "#")
> - return self.tester.send_expect("tcpdump -nn -e -v -
> r ./getPackageByTcpdump.cap", "#", 120)
> + return self.tester.send_expect("tcpdump -nn -e -v -c 1024 -r
> + ./getPackageByTcpdump.cap", "#", 120)
>
> def test_rxoffload_port(self):
> """
> --
> 2.7.4
More information about the dts
mailing list