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 1F489A0C4A; Fri, 16 Jul 2021 05:27:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 16AFB4014D; Fri, 16 Jul 2021 05:27:48 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id E5AD440143 for ; Fri, 16 Jul 2021 05:27:46 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10046"; a="197852314" X-IronPort-AV: E=Sophos;i="5.84,244,1620716400"; d="scan'208";a="197852314" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2021 20:27:45 -0700 X-IronPort-AV: E=Sophos;i="5.84,244,1620716400"; d="scan'208";a="495778350" Received: from unknown (HELO localhost.localdomain) ([10.240.183.105]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2021 20:27:43 -0700 From: Qin Sun To: dts@dpdk.org Cc: Qin Sun Date: Fri, 16 Jul 2021 12:00:42 +0000 Message-Id: <20210716120042.7612-1-qinx.sun@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V2] tests/cvl_advanced_rss: remove test steps behind the destroy rule 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" As dpdk cannot guarantee the operation after destroying the rule, so remove the test steps behind the destroy rule step Signed-off-by: Qin Sun --- tests/TestSuite_cvl_advanced_rss.py | 23 ----------------------- tests/TestSuite_cvl_advanced_rss_pppoe.py | 3 --- 2 files changed, 26 deletions(-) diff --git a/tests/TestSuite_cvl_advanced_rss.py b/tests/TestSuite_cvl_advanced_rss.py index 1534eb8d..da756ac1 100644 --- a/tests/TestSuite_cvl_advanced_rss.py +++ b/tests/TestSuite_cvl_advanced_rss.py @@ -6365,13 +6365,6 @@ class AdvancedRSSTest(TestCase): self.rssprocess.handle_tests(tests, 0) self.rssprocess.destroy_rule(port_id=0, rule_id=rule_id_1) self.rssprocess.check_rule(port_id=0) - tests = [ - { - 'send_packet': 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.3",dst="192.168.0.5")/Raw("x"*480)', - 'action': {'check_no_hash': 'ipv4-pay'}, - }, - ] - self.rssprocess.handle_tests(tests, 0) self.rssprocess.destroy_rule(port_id=0, rule_id=rule_id_0) # Subcase 3: two rules, scope smaller created first, and the larger one created later @@ -6411,15 +6404,7 @@ class AdvancedRSSTest(TestCase): ] self.rssprocess.handle_tests(tests, 0) self.rssprocess.destroy_rule(port_id=0, rule_id=rule_id_1) - self.rssprocess.handle_tests(tests_3, 0) self.rssprocess.destroy_rule(port_id=0, rule_id=rule_id_0) - tests = [ - { - 'send_packet': 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.3",dst="192.168.0.5")/UDP(sport=23, dport=45)/Raw("x"*480)', - 'action': {'check_no_hash': 'ipv4-udp-pay'}, - }, - ] - self.rssprocess.handle_tests(tests, 0) # Subcase 4: two rules, scope larger created first, and the smaller one created later self.logger.info('===================Test sub case: multirules subcase 4 ================') @@ -6458,15 +6443,7 @@ class AdvancedRSSTest(TestCase): ] self.rssprocess.handle_tests(tests, 0) self.rssprocess.destroy_rule(port_id=0, rule_id=rule_id_1) - self.rssprocess.handle_tests(tests_4, 0) self.rssprocess.destroy_rule(port_id=0, rule_id=rule_id_0) - tests = [ - { - 'send_packet': 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.3",dst="192.168.0.5")/UDP(sport=23, dport=45)/Raw("x"*480)', - 'action': {'check_no_hash': 'ipv4-udp-pay'}, - }, - ] - self.rssprocess.handle_tests(tests, 0) self.verify(not self.rssprocess.error_msgs, 'some subcases failed') def tear_down(self): diff --git a/tests/TestSuite_cvl_advanced_rss_pppoe.py b/tests/TestSuite_cvl_advanced_rss_pppoe.py index 0529165a..2d3e226e 100644 --- a/tests/TestSuite_cvl_advanced_rss_pppoe.py +++ b/tests/TestSuite_cvl_advanced_rss_pppoe.py @@ -4710,12 +4710,9 @@ class Advanced_rss_pppoe(TestCase): # destory rule 1 self.rsspro.destroy_rule(rule_id=1) self.rsspro.check_rule(rule_list=['1'], stats=False) - pkt_list[1], pkt_list[2] = pkt_list[2], pkt_list[1] - self._send_pkt_action(pkt_list, action_list=action_list1) # destory rule 0 self.rsspro.destroy_rule(rule_id=0) self.rsspro.check_rule(rule_list=['0'], stats=False) - self._send_pkt_action([pkt_list[0]], action_list=action_list2) def test_two_rules_smaller_first_larger_later(self, ): """ -- 2.17.1