From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 21C8FA0525; Fri, 21 Feb 2020 02:52:01 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1756F1BF99; Fri, 21 Feb 2020 02:52:01 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 223641BF98 for ; Fri, 21 Feb 2020 02:51:58 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Feb 2020 17:51:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,466,1574150400"; d="scan'208";a="383324354" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga004.jf.intel.com with ESMTP; 20 Feb 2020 17:51:58 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 20 Feb 2020 17:51:57 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.222]) by shsmsx102.ccr.corp.intel.com ([169.254.2.126]) with mapi id 14.03.0439.000; Fri, 21 Feb 2020 09:51:54 +0800 From: "Tu, Lijuan" To: "Mo, YufengX" , "dts@dpdk.org" , "Ma, LihongX" Thread-Topic: [dts][PATCH V1 1/1] optimize packet send and capture Thread-Index: AQHV5vMGtALEIpmxEUGTHOcwKxZQJagk5RGQ Date: Fri, 21 Feb 2020 01:51:53 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBCC80D@SHSMSX101.ccr.corp.intel.com> References: <20200219070855.25471-1-yufengx.mo@intel.com> <20200219070855.25471-2-yufengx.mo@intel.com> In-Reply-To: <20200219070855.25471-2-yufengx.mo@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.2.0.6 dlp-reaction: no-action 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 1/1] optimize packet send and capture 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: Mo, YufengX > Sent: Wednesday, February 19, 2020 3:09 PM > To: dts@dpdk.org; Tu, Lijuan ; Ma, LihongX > > Cc: Mo, YufengX > Subject: [dts][PATCH V1 1/1] optimize packet send and capture >=20 >=20 > optimize packet send and capture for x722. >=20 > Signed-off-by: yufengmx > --- > tests/TestSuite_ipv4_reassembly.py | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_ipv4_reassembly.py > b/tests/TestSuite_ipv4_reassembly.py > index 3f33809..8d69ac6 100644 > --- a/tests/TestSuite_ipv4_reassembly.py > +++ b/tests/TestSuite_ipv4_reassembly.py > @@ -209,7 +209,7 @@ class TestIpReassembly(TestCase): > self.tester.scapy_append( > 'pcap =3D rdpcap("%s")' % self.test_config.pcap_file) > self.tester.scapy_append( > - 'sendp(pcap, iface=3D"%s")' % self.test_config.tester_iface) > + 'sendp(pcap, iface=3D"%s", verbose=3DFalse)' % > + self.test_config.tester_iface) > self.tester.scapy_execute() > time.sleep(5) >=20 > @@ -226,6 +226,12 @@ class TestIpReassembly(TestCase): > os.remove(self.test_config.pcap_file) > time.sleep(5) >=20 > + @property > + def wait_interval_for_tcpdump(self): > + interval =3D 5 if self.nic in ["x722_37d2"] \ > + else 0 > + return interval > + > def tcpdump_start_sniffing(self): > """ > Starts tcpdump in the background to sniff the tester interface w= here > @@ -238,12 +244,13 @@ class TestIpReassembly(TestCase): > self.test_config.tester_iface) > self.tester.send_expect('rm -f tcpdump.pcap', '#') > self.tester.send_expect(command, '#') > + time.sleep(self.wait_interval_for_tcpdump) >=20 > def tcpdump_stop_sniff(self): > """ > Stops the tcpdump process running in the background. > """ > - > + time.sleep(self.wait_interval_for_tcpdump) > self.tester.send_expect('killall tcpdump', '#') > # For the [pid]+ Done tcpdump... message after killing the proce= ss > self.tester.send_expect('cat tcpdump.out', '#') > -- > 2.21.0