From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 0E68FA00E6 for ; Wed, 12 Jun 2019 08:45:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D2CD21D144; Wed, 12 Jun 2019 08:45:52 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 34BCF1D13F for ; Wed, 12 Jun 2019 08:45:50 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jun 2019 23:45:49 -0700 X-ExtLoop1: 1 Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga007.fm.intel.com with ESMTP; 11 Jun 2019 23:45:48 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 11 Jun 2019 23:45:48 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 11 Jun 2019 23:45:47 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.104]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.225]) with mapi id 14.03.0439.000; Wed, 12 Jun 2019 14:45:46 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Peng, Yuan" , "Ma, LihongX" Thread-Topic: [dts] [PATCH V1] tests/rxtx_offload: add -c params when use tcpdump read pcap file Thread-Index: AQHVHDCUu6+N5oOJAUmO1D9U7s6M76aXnHwA Date: Wed, 12 Jun 2019 06:45:45 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BABA750@SHSMSX101.ccr.corp.intel.com> References: <1559775807-12500-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1559775807-12500-1-git-send-email-lihongx.ma@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWJkNTJiN2QtNDhiNC00MGZlLTk3ODgtZTJmZWU0Mzk3NWFiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidTVWUHR6Ynl3dTM4WVNOK01kd2hPVHF3MDUxaFFWbU1VaEhTT0ZiTzlIdGRWRmdVSUJGUVJKdmQ1UkpcL0cxYm4ifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/rxtx_offload: add -c params when use tcpdump read pcap file X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > Sent: Thursday, June 6, 2019 7:03 AM > To: dts@dpdk.org > Cc: Peng, Yuan ; Ma, LihongX > Subject: [dts] [PATCH V1] tests/rxtx_offload: add -c params when use > tcpdump read pcap file >=20 > The tcpdump capture all the tx packets from testpmd, read the pcap file w= ill > use too much time, and it not need to read all the packet in the pcap fil= e. > Using 1024 packets to verify the tx packets is enough. >=20 > Signed-off-by: lihong > --- > tests/TestSuite_rxtx_offload.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offlo= ad.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): >=20 > 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) >=20 > def test_rxoffload_port(self): > """ > -- > 2.7.4