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 11A32A0679 for ; Mon, 29 Apr 2019 07:29:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DB0AB5911; Mon, 29 Apr 2019 07:29:36 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 5AF0F5911 for ; Mon, 29 Apr 2019 07:29:35 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Apr 2019 22:29:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,408,1549958400"; d="scan'208";a="319852351" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga005.jf.intel.com with ESMTP; 28 Apr 2019 22:29:33 -0700 Received: from fmsmsx123.amr.corp.intel.com (10.18.125.38) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 28 Apr 2019 22:29:33 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx123.amr.corp.intel.com (10.18.125.38) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 28 Apr 2019 22:29:33 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.70]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.129]) with mapi id 14.03.0415.000; Mon, 29 Apr 2019 13:29:31 +0800 From: "Peng, Yuan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" , "Peng, Yuan" Thread-Topic: [dts] [PATCH V1] update case pmdrssreta to reduce runtime Thread-Index: AQHU/abAxwnFiKhXnEO5h36Ey6mvI6ZSnW5w Date: Mon, 29 Apr 2019 05:29:30 +0000 Message-ID: <67D543A150B29E4CAAE53918F64EDAEA376D6F6D@SHSMSX103.ccr.corp.intel.com> References: <1556444817-16282-1-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1556444817-16282-1-git-send-email-qimaix.xiao@intel.com> Accept-Language: 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-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] update case pmdrssreta to reduce runtime 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" Acked-by: Peng, Yuan -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xiao,qimai Sent: Sunday, April 28, 2019 5:47 PM To: dts@dpdk.org Cc: Xiao, QimaiX Subject: [dts] [PATCH V1] update case pmdrssreta to reduce runtime optimize function of send package with scapy=20 Signed-off-by: xiao,qimai --- tests/TestSuite_pmdrssreta.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/TestSuite_pmdrssreta.py b/tests/TestSuite_pmdrssreta.py = index 03c54a2..9d29af8 100644 --- a/tests/TestSuite_pmdrssreta.py +++ b/tests/TestSuite_pmdrssreta.py @@ -66,43 +66,43 @@ class TestPmdrssreta(TestCase): packet =3D r'sendp([Ether(dst=3D"%s", src=3D"02:00:00:00:0= 0:00")/IP(src=3D"192.168.0.%d", dst=3D"192.168.0.%d")], iface=3D"%s")' % ( mac, i + 1, i + 2, itf) self.tester.scapy_append(packet) - self.tester.scapy_execute() - time.sleep(.5) + self.tester.scapy_execute() + time.sleep(.5) elif tran_type =3D=3D "IPV4&TCP": for i in range(16): packet =3D r'sendp([Ether(dst=3D"%s", src=3D"02:00:00:00:0= 0:00")/IP(src=3D"192.168.0.%d", dst=3D"192.168.0.%d")/TCP(sport=3D1024,dpor= t=3D1024)], iface=3D"%s")' % ( mac, i + 1, i + 2, itf) self.tester.scapy_append(packet) - self.tester.scapy_execute() - time.sleep(.5) + self.tester.scapy_execute() + time.sleep(.5) elif tran_type =3D=3D "IPV4&UDP": for i in range(16): packet =3D r'sendp([Ether(dst=3D"%s", src=3D"02:00:00:00:0= 0:00")/IP(src=3D"192.168.0.%d", dst=3D"192.168.0.%d")/UDP(sport=3D1024,dpor= t=3D1024)], iface=3D"%s")' % ( mac, i + 1, i + 2, itf) self.tester.scapy_append(packet) - self.tester.scapy_execute() - time.sleep(.5) + self.tester.scapy_execute() + time.sleep(.5) elif tran_type =3D=3D "IPV6": for i in range(16): packet =3D r'sendp([Ether(dst=3D"%s", src=3D"02:00:00:00:0= 0:00")/IPv6(src=3D"3ffe:2501:200:1fff::%d", dst=3D"3ffe:2501:200:3::%d")], = iface=3D"%s")' % ( mac, i + 1, i + 2, itf) self.tester.scapy_append(packet) - self.tester.scapy_execute() - time.sleep(.5) + self.tester.scapy_execute() + time.sleep(.5) elif tran_type =3D=3D "IPV6&TCP": for i in range(16): packet =3D r'sendp([Ether(dst=3D"%s", src=3D"02:00:00:00:0= 0:00")/IPv6(src=3D"3ffe:2501:200:1fff::%d", dst=3D"3ffe:2501:200:3::%d")/TC= P(sport=3D1024,dport=3D1024)], iface=3D"%s")' % ( mac, i + 1, i + 2, itf) self.tester.scapy_append(packet) - self.tester.scapy_execute() - time.sleep(.5) + self.tester.scapy_execute() + time.sleep(.5) elif tran_type =3D=3D "IPV6&UDP": for i in range(16): packet =3D r'sendp([Ether(dst=3D"%s", src=3D"02:00:00:00:0= 0:00")/IPv6(src=3D"3ffe:2501:200:1fff::%d", dst=3D"3ffe:2501:200:3::%d")/UD= P(sport=3D1024,dport=3D1024)], iface=3D"%s")' % ( mac, i + 1, i + 2, itf) self.tester.scapy_append(packet) - self.tester.scapy_execute() - time.sleep(.5) + self.tester.scapy_execute() + time.sleep(.5) else: print "\ntran_type error!\n" out =3D self.dut.get_session_output(timeout=3D1) -- 2.17.0