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 7E2BBA0096 for ; Thu, 6 Jun 2019 09:21:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2FE041B951; Thu, 6 Jun 2019 09:21:53 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 90DB81B94F for ; Thu, 6 Jun 2019 09:21:51 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jun 2019 00:21:50 -0700 X-ExtLoop1: 1 Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga008.jf.intel.com with ESMTP; 06 Jun 2019 00:21:48 -0700 Received: from fmsmsx126.amr.corp.intel.com (10.18.125.43) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 6 Jun 2019 00:21:48 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by FMSMSX126.amr.corp.intel.com (10.18.125.43) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 6 Jun 2019 00:21:48 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.134]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.192]) with mapi id 14.03.0415.000; Thu, 6 Jun 2019 15:21:46 +0800 From: "Zhu, WenhuiX" 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: AQHVHDCUMN+nUuFV8U2FpzM5GPvTIqaOOIrA Date: Thu, 6 Jun 2019 07:21:45 +0000 Message-ID: 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: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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" Tested-by: Zhu, WenhuiX -----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 tcpdum= p read pcap file The tcpdump capture all the tx packets from testpmd, read the pcap file wil= l 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. Signed-off-by: lihong --- 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): =20 self.tester.send_expect("killall tcpdump", "#") - return self.tester.send_expect("tcpdump -nn -e -v -r ./getPackageB= yTcpdump.cap", "#", 120) + return self.tester.send_expect("tcpdump -nn -e -v -c 1024 -r=20 + ./getPackageByTcpdump.cap", "#", 120) =20 def test_rxoffload_port(self): """ -- 2.7.4