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 2629EA0096 for ; Wed, 5 Jun 2019 03:46:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D98761B964; Wed, 5 Jun 2019 03:46:27 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id DA9561B95D for ; Wed, 5 Jun 2019 03:46:26 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jun 2019 18:46:26 -0700 X-ExtLoop1: 1 Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 04 Jun 2019 18:46:25 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 4 Jun 2019 18:46:25 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.10]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.187]) with mapi id 14.03.0415.000; Wed, 5 Jun 2019 09:46:23 +0800 From: "Tu, Lijuan" To: "Li, WenjieX A" , "dts@dpdk.org" CC: "Zhang, YanX A" Thread-Topic: [dts] [PATCH V1] update TestSuite_vf_rss to reduce runtime Thread-Index: AQHVFfx4WbZayJIv2k+q60B+YV0oj6aMVPBw Date: Wed, 5 Jun 2019 01:46:23 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAA0488@SHSMSX101.ccr.corp.intel.com> References: <1559120436-112959-1-git-send-email-wenjiex.a.li@intel.com> In-Reply-To: <1559120436-112959-1-git-send-email-wenjiex.a.li@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTUyZmQ3MTgtZDkwOC00MTQxLWJjZjktMjNjMzAxYTRjMzBkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiYkhmaW9SeGREVXBsdHFrUnQ4Vlwvc1FaNDdsdG9jckdGenp3NWpKNlVkRDdLQm9xWm9xWFJBREtKQ2JpTU5kMG8ifQ== 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 TestSuite_vf_rss 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Wenjie Li > Sent: Wednesday, May 29, 2019 5:01 PM > To: dts@dpdk.org > Cc: Zhang, YanX A > Subject: [dts] [PATCH V1] update TestSuite_vf_rss to reduce runtime >=20 > From: "zhang,yan" >=20 > optimize function of send package with scapy >=20 > Signed-off-by: zhang,yan > --- > tests/TestSuite_vf_rss.py | 40 ++++++++++++++++++--------------------- > 1 file changed, 18 insertions(+), 22 deletions(-) >=20 > diff --git a/tests/TestSuite_vf_rss.py b/tests/TestSuite_vf_rss.py index > 8b3d2db..3ad5517 100644 > --- a/tests/TestSuite_vf_rss.py > +++ b/tests/TestSuite_vf_rss.py > @@ -67,75 +67,71 @@ class TestVfRss(TestCase): > packet =3D r'sendp([Ether(dst=3D"%s", > src=3D"02:00:00:00:00: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:00:00")/IP(src=3D"192.168.0.%d", > dst=3D"192.168.0.%d")/TCP(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 "ipv4-udp": > for i in range(16): > packet =3D r'sendp([Ether(dst=3D"%s", > src=3D"02:00:00:00:00:00")/IP(src=3D"192.168.0.%d", > dst=3D"192.168.0.%d")/UDP(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 "ipv4-sctp": > for i in range(16): > packet =3D r'sendp([Ether(dst=3D"%s")/IP(src=3D"192.168.= 0.%d", > dst=3D"192.168.0.%d")/SCTP(sport=3D1024,dport=3D1025,tag=3D1)], iface=3D"= %s")' % ( > mac, i + 1, i + 2, itf) > self.tester.scapy_append(packet) > - self.tester.scapy_execute() > - time.sleep(.5) > packet =3D r'sendp([Ether(dst=3D"%s")/IP(src=3D"192.168.= 0.%d", > dst=3D"192.168.0.%d")/SCTP(sport=3D1025,dport=3D1024,tag=3D1)], iface=3D"= %s")' % ( > mac, i + 2, i + 1, 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 "l2_payload": > for i in range(16): > packet =3D r'sendp([Ether(src=3D"00:00:00:00:00:%02d",ds= t=3D"%s")], > iface=3D"%s")' % ( > i + 1, mac, itf) > self.tester.scapy_append(packet) > - self.tester.scapy_execute() > - time.sleep(.5) > + self.tester.scapy_execute() > + time.sleep(.5) >=20 > elif tran_type =3D=3D "ipv6-other": > for i in range(16): > packet =3D r'sendp([Ether(dst=3D"%s", > src=3D"02:00:00:00:00: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:00:00")/IPv6(src=3D"3ffe:2501:200:1fff::%d", > dst=3D"3ffe:2501:200:3::%d")/TCP(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:00:00")/IPv6(src=3D"3ffe:2501:200:1fff::%d", > dst=3D"3ffe:2501:200:3::%d")/UDP(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-sctp": > for i in range(16): > packet =3D r'sendp([Ether(dst=3D"%s")/IPv6(src=3D"3ffe:2= 501:200:1fff::%d", > dst=3D"3ffe:2501:200:3::%d", nh=3D132)/SCTP(sport=3D1024,dport=3D1025,tag= =3D1)], > iface=3D"%s")' % ( > mac, i + 1, i + 2, itf) > self.tester.scapy_append(packet) > - self.tester.scapy_execute() > - time.sleep(.5) > packet =3D r'sendp([Ether(dst=3D"%s")/IPv6(src=3D"3ffe:2= 501:200:1fff::%d", > dst=3D"3ffe:2501:200:3::%d", nh=3D132)/SCTP(sport=3D1025,dport=3D1024,tag= =3D1)], > iface=3D"%s")' % ( > mac, i + 2, i + 1, itf) > self.tester.scapy_append(packet) > - self.tester.scapy_execute() > - time.sleep(.5) > + self.tester.scapy_execute() > + time.sleep(.5) >=20 > else: > print "\ntran_type error!\n" > -- > 2.17.2