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 E2235A00C2; Thu, 23 Apr 2020 10:49:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D13ED1D540; Thu, 23 Apr 2020 10:49:02 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 113C91D513 for ; Thu, 23 Apr 2020 10:49:00 +0200 (CEST) IronPort-SDR: F3pPUDXC6Y1WXOetCVygQRk9uSMe6m6YmDPY38EcPiSjzgKHlT1DD+UwDheNTEG8HT3pCGfWna FGKZFSw8ew6g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2020 01:49:00 -0700 IronPort-SDR: 6x9MpsMSV8cIpqF5UrlXa+VxlUK2Sv0eljxz/du7ltVQckRwVDmReSV95TKEQ0wI/DAjvmSgTP Q3fXxSPocVrA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,306,1583222400"; d="scan'208";a="334900965" Received: from unknown (HELO dpdk-zhaohy-t.localdomain) ([10.240.183.68]) by orsmga001.jf.intel.com with ESMTP; 23 Apr 2020 01:48:58 -0700 From: "Xu, Hailin" To: dts@dpdk.org Cc: "xu,hailin" Date: Thu, 23 Apr 2020 16:41:39 +0800 Message-Id: <1587631299-68244-1-git-send-email-hailinx.xu@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [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" From: "xu,hailin" carlsville driver is i40e, so the nic support the suite. 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(-) 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", "bartonhills", "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_action['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", "bartonhills", "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_action['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", "fortville_spirit", + "powerville", "fortville_eagle", "fortville_spirit", "carlsville", "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", "foxville"], "%s nic not support ethertype filter" % self.nic) self.pmdout.start_testpmd("%s" % self.cores, "--disable-rss --rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=test1" % self.pf_pci) @@ -783,7 +783,7 @@ class TestGeneric_flow_api(TestCase): time.sleep(2) # 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","fortpark_BASE-T","columbiaville_25g","columbiaville_100g"]): basic_flow_actions = [ @@ -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_TLV","fortpark_BASE-T", "foxville"], "%s nic not support fdir L2 payload filter" % self.nic) self.pmdout.start_testpmd("%s" % self.pf_cores, "--pkt-filter-mode=perfect --rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=test1" % 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_TLV"], "%s nic not support fdir vlan filter" % self.nic) self.pmdout.start_testpmd("%s" % self.cores, "--rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=test1" % 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_TLV"], "%s nic not support fdir vlan filter" % self.nic) self.pmdout.start_testpmd("%s" % self.cores, "--rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=test1" % 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_TLV"], "%s nic not support fdir vlan filter" % self.nic) self.pmdout.start_testpmd("%s" % self.cores, "--rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=test1" % 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_TLV"], "%s nic not support fdir vlan filter" % self.nic) self.pmdout.start_testpmd("%s" % self.cores, "--rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=test1" % 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_TLV"], "%s nic not support fdir vlan filter" % self.nic) self.pmdout.start_testpmd("%s" % self.cores, "--rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=test1" % 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_TLV","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", "sageville", - "fortville_eagle", "fortville_spirit", + "fortville_eagle", "fortville_spirit", "carlsville", "fortville_spirit_single", "fortpark_TLV","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","fortpark_BASE-T", "foxville"]): + "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", "foxville", "carlsville"]): self.setup_env() # start testpmd on pf self.pmdout.start_testpmd("%s" % self.pf_cores, "--pkt-filter-mode=perfect --disable-rss --rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=pf --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_TLV","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","fortpark_BASE-T"]): + "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", "carlsville"]): self.setup_env() self.pmdout.start_testpmd("%s" % self.pf_cores, "--pkt-filter-mode=perfect --disable-rss --rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=pf --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", "sageville", - "fortville_eagle", "fortville_spirit", + "fortville_eagle", "fortville_spirit", "carlsville", "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", "foxville"], "%s nic not support fdir flexbytes filter" % self.nic) # i40e - if (self.nic in ["fortville_eagle", "fortville_spirit", + if (self.nic in ["fortville_eagle", "fortville_spirit", "carlsville", "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T"]): self.pmdout.start_testpmd("%s" % self.pf_cores, "--pkt-filter-mode=perfect --disable-rss --rxq=%d --txq=%d" % (MAX_QUEUE+1, MAX_QUEUE+1), "-w %s --file-prefix=pf" % 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_TLV","fortpark_BASE-T", "foxville"], + "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", "foxville", "carlsville"], "%s nic not support tunnel vxlan filter" % self.nic) 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_TLV","fortpark_BASE-T", "foxville"], + "fortville_spirit_single", "fortpark_TLV","fortpark_BASE-T", "foxville", "carlsville"], "%s nic not support tunnel nvgre filter" % self.nic) 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) # Show port default RSS fucntions - if (self.nic in ["fortville_eagle", "fortville_spirit","carlsville" + if (self.nic in ["fortville_eagle", "fortville_spirit","carlsville", "fortville_spirit_single", "fortpark_TLV","fortpark_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): self.send_packet("ipv4-udp", self.tester_itf) out = self.dut.send_expect("stop", "testpmd> ", 120) - if (self.nic in ["fortville_eagle", "fortville_spirit","carlsville" + if (self.nic in ["fortville_eagle", "fortville_spirit","carlsville", "fortville_spirit_single", "fortpark_TLV","fortpark_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 = ["1", "4", "7"] - if (self.nic in ["fortville_eagle", "fortville_spirit", "carlsville" + if (self.nic in ["fortville_eagle", "fortville_spirit", "carlsville", "fortville_spirit_single", "fortpark_TLV","fortpark_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_TLV","fortpark_BASE-T", "fortville_25g"], "NIC Unsupported: " + str(self.nic)) pkt1 = "Ether(dst='%s')/IP(src='0.0.0.0',dst='4.0.0.0')/UDP(sport=100, dport=200)/('X'*48)" % self.pf_mac pkt2 = "Ether(dst='%s')/IP(src='0.0.0.0',dst='4.0.0.0')/UDP(sport=100, dport=201)/('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_TLV","fortpark_BASE-T", "fortville_25g"], "NIC Unsupported: " + str(self.nic)) self.pmdout.start_testpmd("%s" % self.cores, "--rxq=16 --txq=16 --port-topology=chained") 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_TLV","fortpark_BASE-T", "fortville_25g", "carlsville"], "NIC Unsupported: " + str(self.nic)) self.pmdout.start_testpmd("%s" % self.cores, "--rxq=16 --txq=16 --port-topology=chained") 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_TLV","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=4 --txq=4") -- 1.8.3.1