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 B3BB5A00C4; Fri, 24 Apr 2020 04:38:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AB7D81C22D; Fri, 24 Apr 2020 04:38:55 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 0006E1C21B for ; Fri, 24 Apr 2020 04:38:52 +0200 (CEST) IronPort-SDR: dcJIqSh3DXT9E1fDy1xGKivjuhlywVrhbQ7149m5dvjaofke7C/eZlo/UEQKVi/IWBuLgg2+HY CG5/mTD2jeDA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2020 19:38:52 -0700 IronPort-SDR: b98Uzkh3puudYbst6KlFMTmgF2Sv2CPUKLIdOQOMbKZNbPyjY80OICeHdUSEarLUMG1bprbAHu ofzBLauUGiZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,310,1583222400"; d="scan'208";a="247939837" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga008.fm.intel.com with ESMTP; 23 Apr 2020 19:38:36 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 Apr 2020 19:38:20 -0700 Received: from cdsmsx103.ccr.corp.intel.com (172.17.3.37) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 Apr 2020 19:38:20 -0700 Received: from cdsmsx102.ccr.corp.intel.com ([169.254.2.104]) by CDSMSX103.ccr.corp.intel.com ([169.254.5.221]) with mapi id 14.03.0439.000; Fri, 24 Apr 2020 10:38:17 +0800 From: "Chen, LingliX" To: "Mei, JianweiX" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V1] tests/rss_to_rte_flow:support nic springville Thread-Index: AQHWGVkVW4rYeQni7U6SBBIkBxDK86iHj1XA Date: Fri, 24 Apr 2020 02:38:16 +0000 Message-ID: References: <20200424132656.1123-1-jianweix.mei@intel.com> In-Reply-To: <20200424132656.1123-1-jianweix.mei@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.17.6.105] 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" Tested-by: Chen,Linglix < linglix.chen@intel.com >=20 -----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 From: root add NIC springville. Signed-off-by: root --- tests/TestSuite_rss_to_rte_flow.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/TestSuite_rss_to_rte_flow.py b/tests/TestSuite_rss_to_rt= e_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(TestC= ase): 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 udp = ipv4-tcp ipv6-sctp ipv4-other end queues 1 4 7 end / end", "created") "flow create 0 ingress pattern end actions rss types udp i= pv4-tcp ipv6-sctp ipv4-other end queues 1 2 3 end / end", "created") @@ -39= 1,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 ipv6-= 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 e= nd queues 1 2 3 end / end", "created") else: self.dut.send_expect( "flow create 0 ingress pattern end actions rss types udp e= nd 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',=20 + '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", "springv= ille"]): # Create a flow director rule self.dut.send_expect( "flow create 0 ingress pattern eth / ipv4 proto is 6 / udp= 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',=20 + '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