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 C8B46A0524; Fri, 27 Nov 2020 06:20:34 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8292CCA9E; Fri, 27 Nov 2020 06:20:33 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 743A3CA9D for ; Fri, 27 Nov 2020 06:20:31 +0100 (CET) IronPort-SDR: vbBS3BhkeeFKAKwKYks9YE8KadnuEorPPNYxG5bZlP2zWe2fUDkdq5McSvfjJBILp3xd10kiPd aZJgOBdoV9mA== X-IronPort-AV: E=McAfee;i="6000,8403,9817"; a="236481581" X-IronPort-AV: E=Sophos;i="5.78,373,1599548400"; d="scan'208";a="236481581" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2020 21:20:29 -0800 IronPort-SDR: GBJvKJvpTRgH0IYkahpXTn0tHdjrVzI1QhkYPopyAGlDLmSy7+M0/O5tkrM0Hl/n8R4fdd/tF0 SFQm5IwUbD9A== X-IronPort-AV: E=Sophos;i="5.78,373,1599548400"; d="scan'208";a="479574461" Received: from unknown (HELO dpdk-huangzm-d.sh.intel.com) ([10.240.183.72]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2020 21:20:27 -0800 From: Zhimin Huang To: dts@dpdk.org Cc: qi.fu@intel.com, Zhimin Huang Date: Fri, 27 Nov 2020 13:12:58 +0800 Message-Id: <1606453978-4257-1-git-send-email-zhiminx.huang@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/cvl_advanced_rss_gtpu:delete some multirule step 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" *.delete some test step when multirule case delete rss rule behavior. Signed-off-by: Zhimin Huang --- tests/TestSuite_cvl_advanced_rss_gtpu.py | 105 ------------------------------- 1 file changed, 105 deletions(-) diff --git a/tests/TestSuite_cvl_advanced_rss_gtpu.py b/tests/TestSuite_cvl_advanced_rss_gtpu.py index c92ff6a..b41a5d4 100755 --- a/tests/TestSuite_cvl_advanced_rss_gtpu.py +++ b/tests/TestSuite_cvl_advanced_rss_gtpu.py @@ -4793,36 +4793,6 @@ class TestCVLAdvancedRSSGTPU(TestCase): self.verify(hash_value3[0] != hash_value3[1] and hash_value3[0] == hash_value3[2], 'got wrong hash, expect 1st hash equal to 3rd and different with 2nd') - self.rssprocess.destroy_rule(port_id=0, rule_id=rule_li1) - hash_value1, queues = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts2[0]) - self.verify(all([i == '0' for i in hash_value1]), - 'got wrong hash, expect not got rss hash and distribute to queue 0') - hash_value2, queues = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts2[1]) - self.verify(hash_value2[0] != hash_value2[1] and hash_value2[0] == hash_value2[2], - 'got wrong hash, expect 1st hash equal to 3rd and different with 2nd') - hash_value3, queues = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts2[2]) - self.verify(hash_value3[0] != hash_value3[1] and hash_value3[0] == hash_value3[2], - 'got wrong hash, expect 1st hash equal to 3rd and different with 2nd') - - self.rssprocess.create_rule(rule=rules[0]) - hash_value1, queues = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts2[0]) - self.verify(hash_value1[0] == hash_value1[1] and hash_value1[0] != hash_value1[2], - 'got wrong hash, expect 1st hash equal to 2nd and different with 3rd') - hash_value2, queues = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts2[1]) - self.verify(hash_value2[0] != hash_value2[1] and hash_value2[0] == hash_value2[2], - 'got wrong hash, expect 1st hash equal to 3rd and different with 2nd') - hash_value3, queues = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts2[2]) - self.verify(hash_value3[0] != hash_value3[1] and hash_value3[0] == hash_value3[2], - 'got wrong hash, expect 1st hash equal to 3rd and different with 2nd') - - self.rssprocess.destroy_rule(port_id=0, rule_id=rule_li2) - hash_value1, queues = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts2[0]) - self.verify(hash_value1[0] == hash_value1[1] and hash_value1[0] != hash_value1[2], - 'got wrong hash, expect 1st hash equal to 2nd and different with 3rd') - hash_value2, queues = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts2[1] + pkts2[2]) - self.verify(all([i == '0' for i in hash_value2]), - 'got wrong hash, expect not got rss hash and distribute to queue 0') - def test_ipv4_gtpu_eh_ipv4_with_without_ul_dl(self): self.switch_testpmd(enable_rss=True) rules = [ @@ -4866,11 +4836,6 @@ class TestCVLAdvancedRSSGTPU(TestCase): self.verify(hash_value2[0] != hash_value2[1] and hash_value2[0] == hash_value2[2], 'got wrong hash, expect 1st hash equal to 3rd and different with 2nd') - self.rssprocess.destroy_rule(port_id=0, rule_id=rule_li2) - hash_value1, queues = self.rssprocess.send_pkt_get_hash_queues(pkts2[0] + pkts2[1]) - self.verify(all([i == '0' for i in hash_value1]), - 'got wrong hash, expect not got rss hash and distribute to queue 0') - def test_ipv4_gtpu_eh_ipv4_without_with_ul_dl(self): self.switch_testpmd(enable_rss=True) rules = [ @@ -4910,10 +4875,6 @@ class TestCVLAdvancedRSSGTPU(TestCase): self.verify(hash_values[4] == hash_values[3], 'packet 5 should has same hash value with packet 4') self.verify(hash_values[5] != hash_values[3], 'packet 6 should has different hash value with packet 4') - self.rssprocess.destroy_rule(port_id=0, rule_id=rule2) - hash_values, queues = self.rssprocess.send_pkt_get_hash_queues(pkts1) - self.verify(all([i == '0' for i in hash_values]), 'all pkts should has no hash value and distribute to queue 0') - def test_ipv4_gtpu_eh_ipv4_and_ipv4_gtpu_eh_ipv4_udp_tcp(self): self.switch_testpmd(enable_rss=True) pkts1 = [ @@ -5109,12 +5070,6 @@ class TestCVLAdvancedRSSGTPU(TestCase): self.verify(len(hash_value[0]) != hash_value[2], 'the toeplitz should not work') for temp in range(len(hash_value)): self.verify(len(hash_value[temp]) != 0, 'all the toeplitz packet should have hash value') - #step 4 - self.rssprocess.destroy_rule(rule_id=rule_id_symmetric) - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_toeplitz) - self.verify(len(hash_value) == 0, 'all the toeplitz packet should have no hash value') - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_symmetric) - self.verify(len(hash_value) == 0, 'all the symmetric packet should have no hash value') self.pmd_output.execute_cmd('flow flush 0') self.logger.info('Subcase: toeplitz/symmetric with same pattern (switched rule order)') @@ -5131,12 +5086,6 @@ class TestCVLAdvancedRSSGTPU(TestCase): # step 2 hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_symmetric) self.verify(hash_value[0] != hash_value[1], 'symmetric rule should not work') - # step 3 - self.rssprocess.destroy_rule(rule_id=rule_id_toeplitz) - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_toeplitz) - self.verify(len(hash_value) == 0, 'all the toeplitz packet should have no hash value') - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_symmetric) - self.verify(len(hash_value) == 0, 'all the symmetric packet should have no hash value') self.pmd_output.execute_cmd('flow flush 0') self.logger.info('Subcase: toeplitz/symmetric with different pattern (different UL/DL)') @@ -5165,20 +5114,6 @@ class TestCVLAdvancedRSSGTPU(TestCase): hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_toeplitz) self.verify(hash_value[1] != hash_value[0], 'second packet should hash value different from the first packet') self.verify(hash_value[2] == hash_value[0], 'third packet should hash value same with the first packet') - # step 3 - self.rssprocess.destroy_rule(rule_id=rule_id_symmetric) - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_symmetric) - self.verify(len(hash_value) == 0, 'all the symmetric packet should have no hash value') - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_toeplitz) - self.verify(hash_value[1] != hash_value[0], 'second packet should hash value different from the first packet') - self.verify(hash_value[2] == hash_value[0], 'third packet should hash value same with the first packet') - rule_id_symmetric = self.rssprocess.create_rule(rule=rule_symmetric) - self.rssprocess.check_rule(rule_list=rule_id_symmetric) - self.rssprocess.destroy_rule(rule_id=rule_id_toeplitz) - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_symmetric) - self.verify(hash_value[0] == hash_value[1], 'second packet should hash value same with the first packet') - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_toeplitz) - self.verify(len(hash_value) == 0, 'third packet should hash value same with the first packet') self.pmd_output.execute_cmd('flow flush 0') self.logger.info('Subcase: toeplitz/symmetric with different pattern (with/without UL/DL)') @@ -5212,28 +5147,6 @@ class TestCVLAdvancedRSSGTPU(TestCase): hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_toeplitz) for temp in range(len(hash_value)): self.verify(len(hash_value[temp]) != 0, 'all the toeplitz packet should have hash value') - # step 3 - self.rssprocess.destroy_rule(rule_id=rule_id_symmetric) - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_symmetric) - self.verify(hash_value[0] != hash_value[1], 'symmetric rule should not work') - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_toeplitz) - self.verify(hash_value[1] != hash_value[0], 'hash_value[1] should hash value different from hash_value[0]') - self.verify(hash_value[2] == hash_value[0], 'hash_value[2] should hash value same with hash_value[0]') - self.verify(hash_value[4] != hash_value[3], 'hash_value[4] should hash value different from hash_value[3]') - self.verify(hash_value[5] == hash_value[3], 'hash_value[5] should hash value same with hash_value[3]') - # step 4 - rule_id_symmetric = self.rssprocess.create_rule(rule=rule_symmetric) - self.rssprocess.check_rule(rule_list=rule_id_symmetric) - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_symmetric) - self.verify(hash_value[0] == hash_value[1], 'second packet should hash value same with the first packet') - # step 5 - self.rssprocess.destroy_rule(rule_id=rule_id_toeplitz) - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_symmetric) - self.verify(hash_value[0] == hash_value[1], 'second packet should hash value same with the first packet') - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_toeplitz) - for temp in range(len(hash_value)): - if temp > 2: - self.verify(len(hash_value) == 0, 'all the toeplitz UL packet should have no hash value') self.pmd_output.execute_cmd('flow flush 0') self.logger.info('Subcase: toeplitz/symmetric with different pattern') @@ -5264,24 +5177,6 @@ class TestCVLAdvancedRSSGTPU(TestCase): hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_toeplitz) for temp in range(len(hash_value)): self.verify(len(hash_value[temp]) != 0, 'all the toeplitz packet should have hash value') - # step 3 - self.rssprocess.destroy_rule(rule_id=rule_id_symmetric) - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_symmetric) - self.verify(len(hash_value) == 0, 'all the symmetric packet should have no hash value') - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_toeplitz) - self.verify(hash_value[1] != hash_value[0], 'hash_value[1] should hash value different from hash_value[0]') - self.verify(hash_value[2] != hash_value[0], 'hash_value[2] should hash value different with hash_value[0]') - self.verify(hash_value[3] == hash_value[0], 'hash_value[3] should hash value same from hash_value[0]') - # step 4 - rule_id_symmetric = self.rssprocess.create_rule(rule=rule_symmetric) - self.rssprocess.check_rule(rule_list=rule_id_symmetric) - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_symmetric) - self.verify(hash_value[0] == hash_value[1], 'second packet should hash value same with the first packet') - self.rssprocess.destroy_rule(rule_id=rule_id_toeplitz) - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_symmetric) - self.verify(hash_value[0] == hash_value[1], 'second packet should hash value same with the first packet') - hash_value, _ = self.rssprocess.send_pkt_get_hash_queues(pkts=pkts_toeplitz) - self.verify(len(hash_value) == 0, 'all the symmetric packet should have no hash value') self.pmd_output.execute_cmd('flow flush 0') def tear_down(self): -- 1.8.3.1