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 A1639A00C2; Fri, 24 Apr 2020 08:42:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 981571C1C8; Fri, 24 Apr 2020 08:42:15 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 1F1411C1C8 for ; Fri, 24 Apr 2020 08:42:12 +0200 (CEST) IronPort-SDR: qRlMmVXbSo0jmSNQarbr47a1FZy0/+aRjEW/rM9lbTy87LwTsB9S30pJxoInsGWk/mVY0oKm5U T16avKcFJvjQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2020 23:42:12 -0700 IronPort-SDR: 4g+lcz5kbQXKlJBfo6NgGCmQsTlaRRYxnMGezhIK02gghhBHrTBuO1ViRfqhFelEuCRSqIpPvm fWrLsB/gkf8g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,310,1583222400"; d="scan'208";a="366255369" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 23 Apr 2020 23:42:12 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 Apr 2020 23:41:57 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 Apr 2020 23:41:56 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.7]) with mapi id 14.03.0439.000; Fri, 24 Apr 2020 14:41:54 +0800 From: "Tu, Lijuan" To: "Xu, HailinX" , "dts@dpdk.org" CC: "Xu, HailinX" Thread-Topic: [dts] [PATCH v1] dts_suite:add nic casrlsville. Thread-Index: AQHWGUwZQDiDWxk1Xki17UDbT+uoHqiH1EdA Date: Fri, 24 Apr 2020 06:41:53 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC0F9DF@SHSMSX101.ccr.corp.intel.com> References: <1587631299-68244-1-git-send-email-hailinx.xu@intel.com> In-Reply-To: <1587631299-68244-1-git-send-email-hailinx.xu@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] dts_suite:add nic casrlsville. 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 Xu, Hailin > Sent: Thursday, April 23, 2020 4:42 PM > To: dts@dpdk.org > Cc: Xu, HailinX > Subject: [dts] [PATCH v1] dts_suite:add nic casrlsville. >=20 > From: "xu,hailin" >=20 > carlsville driver is i40e, so the nic support the suite. >=20 > Signed-off-by: xu,hailin > --- > tests/TestSuite_generic_flow_api.py | 42 ++++++++++++++++++-------------= ---- > -- > tests/TestSuite_rss_to_rte_flow.py | 12 +++++------ > tests/TestSuite_rxtx_offload.py | 2 +- > 3 files changed, 28 insertions(+), 28 deletions(-) >=20 > diff --git a/tests/TestSuite_generic_flow_api.py > b/tests/TestSuite_generic_flow_api.py > index a8a7956..1d27a74 100644 > --- a/tests/TestSuite_generic_flow_api.py > +++ b/tests/TestSuite_generic_flow_api.py > @@ -290,10 +290,10 @@ class TestGeneric_flow_api(TestCase): > if "86dd" in flow_cmd or "0800" in flow_cmd or "index %s" % > str(MAX_QUEUE + 1) in flow_cmd: > if self.nic in ["fortville_eagle", "fortville_spirit", > "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", > "niantic", "kawela_4", "kawela", "barton= hills", "twinville", > "sagepond", "sageville", > - "powerville"]: > + "powerville", "carlsville"]: > self.dut.send_expect(flow_cmd, "error") > elif "type is 0x8100" in flow_cmd: > - if self.nic in ["fortville_eagle", "fortville_spirit", > "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T"]: > + if self.nic in ["fortville_eagle", "fortville_spirit", > "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", "carlsville"= ]: > self.dut.send_expect(flow_cmd, "error") > # vf queue id exceeds max vf queue number. > elif (("vf0" in flow_action['flows']) or ("vf1" in flow_acti= on['flows']) or > ( @@ -307,10 +307,10 @@ class TestGeneric_flow_api(TestCase): > if "86dd" in flow_cmd or "0800" in flow_cmd or "index %s" % > str(MAX_QUEUE + 1) in flow_cmd: > if self.nic in ["fortville_eagle", "fortville_spirit", > "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", > "niantic", "kawela_4", "kawela", "barton= hills", "twinville", > "sagepond", "sageville", > - "powerville"]: > + "powerville", "carlsville"]: > self.dut.send_expect(flow_cmd, "error") > elif "type is 0x8100" in flow_cmd: > - if self.nic in ["fortville_eagle", "fortville_spirit", > "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T"]: > + if self.nic in ["fortville_eagle", "fortville_spirit", > "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", "carlsville"= ]: > self.dut.send_expect(flow_cmd, "error") > # vf queue id exceeds max vf queue number. > elif (("vf0" in flow_action['flows']) or ("vf1" in flow_acti= on['flows']) or > ( @@ -773,7 +773,7 @@ class TestGeneric_flow_api(TestCase): > supported by i40e, ixgbe and igb > """ > self.verify(self.nic in ["niantic", > "columbiaville_25g","columbiaville_100g","kawela_4", "kawela", > "bartonhills", "twinville", "sagepond", "sageville", > - "powerville", "fortville_eagle", "fortv= ille_spirit", > + "powerville", "fortville_eagle", > + "fortville_spirit", "carlsville", > "fortville_spirit_single", "fortpark_TL= V","fortpark_BASE-T", > "foxville"], "%s nic not support ethertype filter" % self.nic) >=20 > self.pmdout.start_testpmd("%s" % self.cores, "--disable-rss --rx= q=3D%d -- > txq=3D%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=3Dtest1" % > self.pf_pci) @@ -783,7 +783,7 @@ class TestGeneric_flow_api(TestCase): > time.sleep(2) >=20 > # i40e,ixgbe and igb support different packet types. > - if (self.nic in ["fortville_eagle", "fortville_spirit", > + if (self.nic in ["fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TLV","fort= park_BASE- > T","columbiaville_25g","columbiaville_100g"]): >=20 > basic_flow_actions =3D [ > @@ -869,7 +869,7 @@ class TestGeneric_flow_api(TestCase): > """ > only supported by i40e > """ > - self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TL= V","fortpark_BASE-T", > "foxville"], "%s nic not support fdir L2 payload filter" % self.nic) >=20 > self.pmdout.start_testpmd("%s" % self.pf_cores, "--pkt-filter- > mode=3Dperfect --rxq=3D%d --txq=3D%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "- > w %s --file-prefix=3Dtest1" % self.pf_pci) @@ -913,7 +913,7 @@ class > TestGeneric_flow_api(TestCase): > """ > only supported by i40e > """ > - self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TL= V"], "%s nic not > support fdir vlan filter" % self.nic) >=20 > self.pmdout.start_testpmd("%s" % self.cores, "--rxq=3D%d --txq= =3D%d" % > (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=3Dtest1" % self.pf_pci) > @@ -1001,7 +1001,7 @@ class TestGeneric_flow_api(TestCase): > """ > only supported by i40e > """ > - self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TL= V"], "%s nic not > support fdir vlan filter" % self.nic) >=20 > self.pmdout.start_testpmd("%s" % self.cores, "--rxq=3D%d --txq= =3D%d" % > (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=3Dtest1" % self.pf_pci) > @@ -1089,7 +1089,7 @@ class TestGeneric_flow_api(TestCase): > """ > only supported by i40e > """ > - self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TL= V"], "%s nic not > support fdir vlan filter" % self.nic) >=20 > self.pmdout.start_testpmd("%s" % self.cores, "--rxq=3D%d --txq= =3D%d" % > (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=3Dtest1" % self.pf_pci) > @@ -1177,7 +1177,7 @@ class TestGeneric_flow_api(TestCase): > """ > only supported by i40e > """ > - self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TL= V"], "%s nic not > support fdir vlan filter" % self.nic) >=20 > self.pmdout.start_testpmd("%s" % self.cores, "--rxq=3D%d --txq= =3D%d" % > (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=3Dtest1" % self.pf_pci) > @@ -1264,7 +1264,7 @@ class TestGeneric_flow_api(TestCase): > """ > only supported by i40e > """ > - self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TL= V"], "%s nic not > support fdir vlan filter" % self.nic) >=20 > self.pmdout.start_testpmd("%s" % self.cores, "--rxq=3D%d --txq= =3D%d" % > (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=3Dtest1" % self.pf_pci) > @@ -1317,7 +1317,7 @@ class TestGeneric_flow_api(TestCase): > """ > only supported by i40e > """ > - self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TL= V","fortpark_BASE-T", > "foxville"], "%s nic not support fdir vlan filter" % self.nic) > self.setup_env() > # start testpmd on pf > @@ -1409,12 +1409,12 @@ class TestGeneric_flow_api(TestCase): > only supported by i40e and ixgbe > """ > self.verify(self.nic in ["niantic", > "columbiaville_25g","columbiaville_100g","twinville", "sagepond", "sagevi= lle", > - "fortville_eagle", "fortville_spirit", > + "fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TL= V","fortpark_BASE-T", > "foxville"], > "%s nic not support fdir ipv4 filter" % self.nic) > # i40e > if (self.nic in ["fortville_eagle", > "fortville_spirit","columbiaville_25g","columbiaville_100g", > - "fortville_spirit_single", "fortpark_TLV","fort= park_BASE-T", > "foxville"]): > + "fortville_spirit_single", "fortpark_TLV","fort= park_BASE-T", > "foxville", "carlsville"]): > self.setup_env() > # start testpmd on pf > self.pmdout.start_testpmd("%s" % self.pf_cores, "--pkt-filte= r- > mode=3Dperfect --disable-rss --rxq=3D%d --txq=3D%d" % (MAX_QUEUE+1, > MAX_QUEUE+1), "-w %s --file-prefix=3Dpf --socket-mem 1024,1024 --legacy- > mem" % self.pf_pci) @@ -1518,12 +1518,12 @@ class > TestGeneric_flow_api(TestCase): > only supported by i40e and ixgbe > """ > self.verify(self.nic in ["niantic", "twinville", "sagepond", > "sageville","columbiaville_25g","columbiaville_100g", > - "fortville_eagle", "fortville_spirit", > + "fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TL= V","fortpark_BASE-T", > "foxville"], > "%s nic not support fdir ipv6 filter" % self.nic) > # i40e > if (self.nic in ["fortville_eagle", > "fortville_spirit","columbiaville_25g","columbiaville_100g", > - "fortville_spirit_single", "fortpark_TLV","fort= park_BASE-T"]): > + "fortville_spirit_single", "fortpark_TLV","fort= park_BASE-T", > "carlsville"]): > self.setup_env() > self.pmdout.start_testpmd("%s" % self.pf_cores, "--pkt-filte= r- > mode=3Dperfect --disable-rss --rxq=3D%d --txq=3D%d" % (MAX_QUEUE+1, > MAX_QUEUE+1), "-w %s --file-prefix=3Dpf --socket-mem 1024,1024 --legacy- > mem" % self.pf_pci) > self.dut.send_expect("set fwd rxonly", "testpmd> ", 120) @@ = - > 1638,11 +1638,11 @@ class TestGeneric_flow_api(TestCase): > The filter structure is different between igb, ixgbe and i40e > """ > self.verify(self.nic in ["niantic", "twinville", "sagepond", "sa= geville", > - "fortville_eagle", "fortville_spirit", > + "fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TL= V","fortpark_BASE-T", > "foxville"], > "%s nic not support fdir flexbytes filter" % self.ni= c) > # i40e > - if (self.nic in ["fortville_eagle", "fortville_spirit", > + if (self.nic in ["fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TLV","fort= park_BASE-T"]): > self.pmdout.start_testpmd("%s" % self.pf_cores, "--pkt-filte= r- > mode=3Dperfect --disable-rss --rxq=3D%d --txq=3D%d" % (MAX_QUEUE+1, > MAX_QUEUE+1), "-w %s --file-prefix=3Dpf" % self.pf_pci) > self.dut.send_expect("set fwd rxonly", "testpmd> ", 120) @@ = -1967,7 > +1967,7 @@ class TestGeneric_flow_api(TestCase): > only supported by i40e > """ > self.verify(self.nic in ["fortville_eagle", > "fortville_spirit","columbiaville_25g","columbiaville_100g", > - "fortville_spirit_single", "fortpark_TL= V","fortpark_BASE-T", > "foxville"], > + "fortville_spirit_single", > + "fortpark_TLV","fortpark_BASE-T", "foxville", "carlsville"], > "%s nic not support tunnel vxlan filter" % self.nic) >=20 > self.setup_env() > @@ -2031,7 +2031,7 @@ class TestGeneric_flow_api(TestCase): > only supported by i40e > """ > self.verify(self.nic in ["fortville_eagle", > "fortville_spirit","columbiaville_25g","columbiaville_100g", > - "fortville_spirit_single", "fortpark_TL= V","fortpark_BASE-T", > "foxville"], > + "fortville_spirit_single", > + "fortpark_TLV","fortpark_BASE-T", "foxville", "carlsville"], > "%s nic not support tunnel nvgre filter" % self.nic) >=20 > self.setup_env() > diff --git a/tests/TestSuite_rss_to_rte_flow.py > b/tests/TestSuite_rss_to_rte_flow.py > index b345a84..8d5cf51 100644 > --- a/tests/TestSuite_rss_to_rte_flow.py > +++ b/tests/TestSuite_rss_to_rte_flow.py > @@ -226,7 +226,7 @@ class TestRSS_to_Rteflow(TestCase): > time.sleep(2) >=20 > # Show port default RSS fucntions > - if (self.nic in ["fortville_eagle", "fortville_spirit","carlsvil= le" > + if (self.nic in ["fortville_eagle", > + "fortville_spirit","carlsville", > "fortville_spirit_single", "fortpark_TLV","fort= park_BASE-T", > "fortville_25g"]): > self.dut.send_expect( > "show port 0 rss-hash", "ipv4-frag ipv4-other ipv6-frag = ipv6-other > ip") @@ -240,7 +240,7 @@ class TestRSS_to_Rteflow(TestCase): >=20 > self.send_packet("ipv4-udp", self.tester_itf) > out =3D self.dut.send_expect("stop", "testpmd> ", 120) > - if (self.nic in ["fortville_eagle", "fortville_spirit","carlsvil= le" > + if (self.nic in ["fortville_eagle", > + "fortville_spirit","carlsville", > "fortville_spirit_single", "fortpark_TLV","fort= park_BASE-T", > "fortville_25g"]): > self.check_packet_queue("0", out) > else: > @@ -286,7 +286,7 @@ class TestRSS_to_Rteflow(TestCase): > # ipv4-other and ipv6-other is enabled by default. > # i40e > rss_queue =3D ["1", "4", "7"] > - if (self.nic in ["fortville_eagle", "fortville_spirit", "carlsvi= lle" > + if (self.nic in ["fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TLV","fort= park_BASE-T", > "fortville_25g"]): > self.send_and_check(self.pkt4, rss_queue) > self.send_and_check(self.pkt8, rss_queue) @@ -416,7 +416,7 @= @ > class TestRSS_to_Rteflow(TestCase): > Set key and key_len. > """ > # Only supported by i40e > - self.verify(self.nic in ["fortville_eagle", "fortville_spirit", = "carlsville" > + self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TL= V","fortpark_BASE-T", > "fortville_25g"], "NIC Unsupported: " + str(self.nic)) > pkt1 =3D "Ether(dst=3D'%s')/IP(src=3D'0.0.0.0',dst=3D'4.0.0.0')/= UDP(sport=3D100, > dport=3D200)/('X'*48)" % self.pf_mac > pkt2 =3D "Ether(dst=3D'%s')/IP(src=3D'0.0.0.0',dst=3D'4.0.0.0')/= UDP(sport=3D100, > dport=3D201)/('X'*48)" % self.pf_mac @@ -603,7 +603,7 @@ class > TestRSS_to_Rteflow(TestCase): > """ > Set RSS queue rule with queue region API. > """ > - self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TL= V","fortpark_BASE-T", > "fortville_25g"], "NIC Unsupported: " + str(self.nic)) > self.pmdout.start_testpmd("%s" % self.cores, "--rxq=3D16 --txq= =3D16 --port- > topology=3Dchained") > self.dut.send_expect("set fwd rxonly", "testpmd> ", 120) @@ -647= ,7 > +647,7 @@ class TestRSS_to_Rteflow(TestCase): > """ > Set RSS queue rule with invalid parameter in queue region API. > """ > - self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + self.verify(self.nic in ["fortville_eagle", "fortville_spirit", > + "carlsville", > "fortville_spirit_single", "fortpark_TL= V","fortpark_BASE-T", > "fortville_25g", "carlsville"], "NIC Unsupported: " + str(self.nic)) > self.pmdout.start_testpmd("%s" % self.cores, "--rxq=3D16 --txq= =3D16 --port- > topology=3Dchained") > self.dut.send_expect("set fwd rxonly", "testpmd> ", 120) diff --= git > a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offload.py index > dcd1212..bf2c901 100644 > --- a/tests/TestSuite_rxtx_offload.py > +++ b/tests/TestSuite_rxtx_offload.py > @@ -678,7 +678,7 @@ class TestRxTx_Offload(TestCase): > Set Rx offload by queue. > """ > # Only support i40e NICs > - self.verify(self.nic in ["fortville_eagle", "fortville_spirit","= fortville_25g", > + self.verify(self.nic in ["fortville_eagle", > + "fortville_spirit","fortville_25g", "carlsville", > "fortville_spirit_single", "fortpark_TL= V","fortpark_BASE- > T"], "%s nic not support rx offload setting by queue." % self.nic) > # Check offload configuration by port and by queue. > self.pmdout.start_testpmd("%s" % self.cores, "--rxq=3D4 --txq=3D= 4") > -- > 1.8.3.1