From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DECA2A0C46; Fri, 17 Sep 2021 05:36:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D607E410E3; Fri, 17 Sep 2021 05:36:57 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 5D56940689 for ; Fri, 17 Sep 2021 05:36:56 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10109"; a="286399326" X-IronPort-AV: E=Sophos;i="5.85,299,1624345200"; d="scan'208";a="286399326" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2021 20:36:55 -0700 X-IronPort-AV: E=Sophos;i="5.85,299,1624345200"; d="scan'208";a="546116183" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2021 20:36:54 -0700 From: Yan Xia To: dts@dpdk.org Cc: Yan Xia Date: Fri, 17 Sep 2021 11:38:41 +0000 Message-Id: <20210917113842.85846-2-yanx.xia@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210917113842.85846-1-yanx.xia@intel.com> References: <20210917113842.85846-1-yanx.xia@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 1/2] tests/fortville_rss_granularity_config: move test_dual_vlan to TestSuite_generic_flow_api X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" move test_dual_vlan from rss_granularity_config to TestSuite_generic_flow_api Signed-off-by: Yan Xia --- ...tSuite_fortville_rss_granularity_config.py | 58 ------------------- 1 file changed, 58 deletions(-) diff --git a/tests/TestSuite_fortville_rss_granularity_config.py b/tests/TestSuite_fortville_rss_granularity_config.py index 3ebd5139..a4de80e2 100644 --- a/tests/TestSuite_fortville_rss_granularity_config.py +++ b/tests/TestSuite_fortville_rss_granularity_config.py @@ -484,64 +484,6 @@ class TestFortvilleRssGranularityConfig(TestCase): flag = 0 self.verify(flag, "The two hash values are different, rss_granularity_config failed!") - def test_dual_vlan(self): - """ - Test with flow type dual vlan(QinQ). - """ - flag = 1 - - # test with different rss queues - for queue in testQueues: - self.pmdout.start_testpmd( - "Default", " --portmask=0x1 --rxq=%d --txq=%d" % (queue, queue)) - - self.dut.send_expect("set verbose 8", "testpmd> ") - self.dut.send_expect("set fwd rxonly", "testpmd> ") - - self.dut.send_expect("port stop all", "testpmd> ") - self.dut.send_expect("vlan set extend on 0", "testpmd> ") - self.dut.send_expect( - "set_hash_global_config 0 toeplitz l2_payload enable", "testpmd> ") - self.dut.send_expect("port start all", "testpmd> ") - res = self.pmdout.wait_link_status_up("all") - self.verify(res is True, "link is donw") - - self.dut.send_expect( - "port config all rss ether", "testpmd> ") - self.send_packet(self.itf, "l2_payload") - - # set hash input set to "none" by testpmd on dut - self.dut.send_expect("set_hash_input_set 0 l2_payload none select", "testpmd> ") - self.send_packet(self.itf, "l2_payload") - - # set hash input set by testpmd on dut, enable ovlan - self.dut.send_expect("set_hash_input_set 0 l2_payload ovlan add", "testpmd> ") - self.send_packet(self.itf, "l2_payload") - - # set hash input set by testpmd on dut, enable ovlan & ivlan - self.dut.send_expect("set_hash_input_set 0 l2_payload ivlan add", "testpmd> ") - self.send_packet(self.itf, "l2_payload") - - self.dut.send_expect("quit", "# ", 30) - - self.result_table_print() - result_rows = self.result_table_getrows() - self.verify(len(result_rows) > 1, "There is no data in the table, testcase failed!") - - # check the results - if ((result_rows[1][1] != result_rows[2][1])or(result_rows[1][3] != result_rows[2][3])): - flag = 0 - self.verify(flag, "The two hash values are different, rss_granularity_config failed!") - elif ((result_rows[1][1] == result_rows[3][1])or(result_rows[1][3] == result_rows[3][3])): - flag = 0 - self.verify(flag, "The two hash values are the same, rss_granularity_config failed!") - elif ((result_rows[1][1] == result_rows[4][1])or(result_rows[1][3] == result_rows[4][3])): - flag = 0 - self.verify(flag, "The two hash values are the same, rss_granularity_config failed!") - elif ((result_rows[3][1] == result_rows[4][1])or(result_rows[3][3] == result_rows[4][3])): - flag = 0 - self.verify(flag, "The two hash values are the same, rss_granularity_config failed!") - def test_GRE_keys(self): """ Test with 32-bit GRE keys and 24-bit GRE keys. -- 2.32.0