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 CF470A00C2; Fri, 24 Apr 2020 08:42:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C6C441C1D3; Fri, 24 Apr 2020 08:42:16 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 175391C1C8 for ; Fri, 24 Apr 2020 08:42:13 +0200 (CEST) IronPort-SDR: XXbb9pnQGeIteErbLi6TVHoscq+zHjKerCDEUH0S2zPnostdcQo7Ojx7R6X2ybSJpe+1afc0SD fCwXj7ItF7gg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2020 23:42:13 -0700 IronPort-SDR: p09UBy/S9V4w6pulBWZzTxSLojgSG0iPuPEwTlecf1Sm32dt8mE7FmZVrofY7ICIfKWdFt9UX3 Am7zzoMCwu9A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,310,1583222400"; d="scan'208";a="256273737" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 23 Apr 2020 23:41:59 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 Apr 2020 23:41:53 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 23 Apr 2020 23:41:53 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 23 Apr 2020 23:41:52 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.214]) with mapi id 14.03.0439.000; Fri, 24 Apr 2020 14:41:51 +0800 From: "Tu, Lijuan" To: "Mei, JianweiX" , "dts@dpdk.org" CC: root Thread-Topic: [dts] [PATCH V1] tests/rss_to_rte_flow:support nic springville Thread-Index: AQHWGVkVInn3yF1W00WZBFvnFZCGwaiH1CjA Date: Fri, 24 Apr 2020 06:41:50 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC0F9CA@SHSMSX101.ccr.corp.intel.com> References: <20200424132656.1123-1-jianweix.mei@intel.com> In-Reply-To: <20200424132656.1123-1-jianweix.mei@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] tests/rss_to_rte_flow:support nic springville 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 Mei Jianwei > Sent: Friday, April 24, 2020 9:27 PM > To: dts@dpdk.org > Cc: root > Subject: [dts] [PATCH V1] tests/rss_to_rte_flow:support nic springville >=20 > From: root >=20 > add NIC springville. >=20 > Signed-off-by: root > --- > tests/TestSuite_rss_to_rte_flow.py | 30 +++++++++++++++--------------- > 1 file changed, 15 insertions(+), 15 deletions(-) >=20 > diff --git a/tests/TestSuite_rss_to_rte_flow.py > b/tests/TestSuite_rss_to_rte_flow.py > index b345a84..f9b37ea 100644 > --- a/tests/TestSuite_rss_to_rte_flow.py > +++ b/tests/TestSuite_rss_to_rte_flow.py > @@ -266,7 +266,7 @@ class TestRSS_to_Rteflow(TestCase): > """ > Set valid and invalid parameter. > """ > - num =3D '4' if self.nic =3D=3D "foxville" else '8' > + num =3D '4' if self.nic in ["foxville", "springville"] else '8' > self.pmdout.start_testpmd("%s" % self.cores, "--rxq=3D%s --txq= =3D%s --port- > topology=3Dchained" % (num, num)) > self.dut.send_expect("set fwd rxonly", "testpmd> ", 120) > self.dut.send_expect("set verbose 1", "testpmd> ", 120) @@ -274,= 7 > +274,7 @@ class TestRSS_to_Rteflow(TestCase): > time.sleep(2) >=20 > # Create a rss queue rule > - if self.nic =3D=3D 'foxville': > + if self.nic in ['foxville',"springville"]: > self.dut.send_expect( > #"flow create 0 ingress pattern end actions rss queues 1= 4 7 end / > end", "created") > "flow create 0 ingress pattern end actions rss queues 1 = 2 3 end / > end", "created") @@ -298,7 +298,7 @@ class TestRSS_to_Rteflow(TestCase): > self.send_and_check(self.pkt6, rss_queue) > self.send_and_check(self.pkt7, rss_queue) > else: > - if self.nic =3D=3D 'foxville': > + if self.nic in ['foxville', 'springville']: > rss_queue =3D ["1", "2", "3"] > self.send_and_check(self.pkt1, rss_queue) > self.send_and_check(self.pkt2, rss_queue) @@ -347,7 +347,7 @= @ > class TestRSS_to_Rteflow(TestCase): > self.dut.send_expect( > "flow create 0 ingress pattern end actions rss queues 8 end = / end", > "error") > # Set all the queues to the rule > - if self.nic =3D=3D 'foxville': > + if self.nic in ['foxville', 'springville']: > self.dut.send_expect( > "flow create 0 ingress pattern end actions rss queues 0 = 1 2 3 end / > end", "created") > else: > @@ -358,7 +358,7 @@ class TestRSS_to_Rteflow(TestCase): > """ > Set valid and invalid parameter. > """ > - num =3D '4' if self.nic =3D=3D "foxville" else '8' > + num =3D '4' if self.nic in ["foxville", "springville"] else '8' > self.pmdout.start_testpmd("%s" % self.cores, "--rxq=3D%s --txq= =3D%s --port- > topology=3Dchained" % (num, num)) > self.dut.send_expect("set fwd rxonly", "testpmd> ", 120) > self.dut.send_expect("set verbose 1", "testpmd> ", 120) @@ -366,= 7 > +366,7 @@ class TestRSS_to_Rteflow(TestCase): > time.sleep(2) >=20 > # Create a rss queue rule > - if self.nic =3D=3D 'foxville': > + if self.nic in ['foxville', 'springville']: > self.dut.send_expect( > #"flow create 0 ingress pattern end actions rss types ud= p ipv4-tcp > ipv6-sctp ipv4-other end queues 1 4 7 end / end", "created") > "flow create 0 ingress pattern end actions rss types udp= ipv4-tcp > ipv6-sctp ipv4-other end queues 1 2 3 end / end", "created") @@ -391,7 > +391,7 @@ class TestRSS_to_Rteflow(TestCase): > self.send_and_check(self.pkt2, rss_queue) > self.send_and_check(self.pkt3, rss_queue) > self.send_and_check(self.pkt6, rss_queue) > - elif(self.nic in ["foxville"]): > + elif(self.nic in ["foxville", "springville"]): > rss_queue =3D ["1", "2", "3"] > self.send_and_check(self.pkt2, rss_queue) > self.send_and_check(self.pkt3, rss_queue) @@ -493,7 +493,7 @= @ > class TestRSS_to_Rteflow(TestCase): > """ > Set RSS queue rule while disable RSS in command-line. > """ > - num =3D '4' if self.nic =3D=3D "foxville" else '8' > + num =3D '4' if self.nic in ["foxville", "springville"] else '8' > self.pmdout.start_testpmd("%s" % self.cores, "--rxq=3D%s --txq= =3D%s -- > disable-rss --port-topology=3Dchained" % (num, num)) > self.dut.send_expect("set fwd rxonly", "testpmd> ", 120) > self.dut.send_expect("set verbose 1", "testpmd> ", 120) @@ -514,= 7 > +514,7 @@ class TestRSS_to_Rteflow(TestCase): > self.dut.send_expect("start", "testpmd> ", 120) > time.sleep(2) > # Create a rss queue rule > - if self.nic =3D=3D 'foxville': > + if self.nic in ['foxville', 'springville']: > self.dut.send_expect( > "flow create 0 ingress pattern end actions rss types ipv= 6-tcp ipv4- > udp sctp ipv6-other end queues 1 2 3 end / end", "created") > else: > @@ -534,7 +534,7 @@ class TestRSS_to_Rteflow(TestCase): > self.send_and_check(self.pkt4, rss_queue) > self.send_and_check(self.pkt6, rss_queue) > else: > - if self.nic =3D=3D 'foxville': > + if self.nic in ['foxville', 'springville']: > rss_queue =3D ["1", "2", "3"] > self.send_and_check(self.pkt2, rss_queue) > self.send_and_check(self.pkt7, rss_queue) @@ -562,7 +562,7 @= @ > class TestRSS_to_Rteflow(TestCase): > """ > Set RSS queue rule and flow director rule in meantime. > """ > - num =3D '4' if self.nic =3D=3D "foxville" else '8' > + num =3D '4' if self.nic in ["foxville", "springville"] else '8' > self.pmdout.start_testpmd("%s" % self.cores, "--rxq=3D%s --txq= =3D%s --pkt- > filter-mode=3Dperfect" % (num, num)) > self.dut.send_expect("set fwd rxonly", "testpmd> ", 120) > self.dut.send_expect("set verbose 1", "testpmd> ", 120) @@ -570,= 17 > +570,17 @@ class TestRSS_to_Rteflow(TestCase): > time.sleep(2) >=20 > # Create a rss queue rule > - if self.nic =3D=3D 'foxville': > + if self.nic in ['foxville', 'springville']: > self.dut.send_expect( > "flow create 0 ingress pattern end actions rss types udp= end queues > 1 2 3 end / end", "created") > else: > self.dut.send_expect( > "flow create 0 ingress pattern end actions rss types udp= end queues > 3 4 5 end / end", "created") > # send the packets and verify the results > - rss_queue =3D ["1", "2", "3"] if self.nic =3D=3D 'foxville' else= ["3", "4", "5"] > + rss_queue =3D ["1", "2", "3"] if self.nic in ['foxville', > + 'springville'] else ["3", "4", "5"] > self.send_and_check(self.pkt2, rss_queue) > # Create a flow director rule > - if (self.nic in ["bartonhills", "powerville", "foxville"]): > + if (self.nic in ["bartonhills", "powerville", "foxville", "sprin= gville"]): > # Create a flow director rule > self.dut.send_expect( > "flow create 0 ingress pattern eth / ipv4 proto is 6 / u= dp dst is 50 / > end actions queue index 1 / end", "created") @@ -596,7 +596,7 @@ class > TestRSS_to_Rteflow(TestCase): > self.send_and_check(self.pkt2, rss_queue) > # There can't be more than one RSS queue rule existing. > self.dut.send_expect("flow destroy 0 rule 1", "testpmd> ") > - rss_queue =3D ["1", "2", "3"] if self.nic =3D=3D 'foxville' else= ["3", "4", "5"] > + rss_queue =3D ["1", "2", "3"] if self.nic in ['foxville', > + 'springville'] else ["3", "4", "5"] > self.send_and_check(self.pkt2, rss_queue) >=20 > def test_queue_region_with_rss_rule_api(self): > -- > 2.18.2