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 0C441A0096 for ; Thu, 6 Jun 2019 08:24:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D2CEE1B946; Thu, 6 Jun 2019 08:24:51 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 4D4AB5424 for ; Thu, 6 Jun 2019 08:24:50 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Jun 2019 23:24:49 -0700 X-ExtLoop1: 1 Received: from ubuntu.sh.intel.com ([10.67.118.150]) by fmsmga004.fm.intel.com with ESMTP; 05 Jun 2019 23:24:48 -0700 From: lihong To: dts@dpdk.org Cc: yuan.peng@intel.com, lihong Date: Thu, 6 Jun 2019 07:03:27 +0800 Message-Id: <1559775807-12500-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [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" 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 --- 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