From patchwork Tue Jan 26 17:35:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Fu, Qi" X-Patchwork-Id: 87283 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9F2FFA052A; Tue, 26 Jan 2021 09:50:38 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 90F4C1412BE; Tue, 26 Jan 2021 09:50:38 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id D5DCC1412AF for ; Tue, 26 Jan 2021 09:50:36 +0100 (CET) IronPort-SDR: ezE3mp9Rqmi2ZyxtDTE0otXKoZ5bf8pih8sUfs24SRALldZslJLvWqQKoUfbdVnqJUyVOBNqXR TFCUZsU4icnA== X-IronPort-AV: E=McAfee;i="6000,8403,9875"; a="241398948" X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="241398948" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2021 00:50:31 -0800 IronPort-SDR: Hjm0wpp2EEky0LlrLMpkhd5AqTKqE1RB59DvqQ6HmG2kfvTgW5IJZ3WoyGdEXzHofb3IgWb80W iXhuuu1M4ytg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="369036850" Received: from dpdk-qifu-cxl.sh.intel.com ([10.67.119.67]) by orsmga002.jf.intel.com with ESMTP; 26 Jan 2021 00:50:29 -0800 From: qifu To: dts@dpdk.org Cc: qifu Date: Tue, 26 Jan 2021 12:35:24 -0500 Message-Id: <20210126173524.25148-1-qi.fu@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1]test_plans/cvl_advanced_iavf_rss_test_plan:delete steps after destroying rss rules 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" synced with developer, the behavior after destroy rss rules are not unified. so delete the steps after destroying rss rules. Signed-off-by: qifu --- .../cvl_advanced_iavf_rss_test_plan.rst | 80 +------------------ 1 file changed, 2 insertions(+), 78 deletions(-) diff --git a/test_plans/cvl_advanced_iavf_rss_test_plan.rst b/test_plans/cvl_advanced_iavf_rss_test_plan.rst index c4661550..5cc48c5b 100644 --- a/test_plans/cvl_advanced_iavf_rss_test_plan.rst +++ b/test_plans/cvl_advanced_iavf_rss_test_plan.rst @@ -335,8 +335,7 @@ all the test cases run the same test steps as below: check the packet is distributed to queues by rss. note: if there is not this type packet in the case, omit this step. 6. destroy the rule and list rule. -7. send same packet with step 3. - check the received packet have different hash value with basic packet. + Test case: MAC_IPV4 =================== @@ -1502,8 +1501,7 @@ all the test cases run the same test steps as below: check all the packets are distributed to queues by rss. note: if there is not this type packet in the case, omit this step. 6. destroy the rule and list rule. -7. send same packets with step 2. - check the received packets have different hash value, or have no hash value. + Test case: symmetric MAC_IPV4 ============================= @@ -1760,41 +1758,6 @@ Subcase 1: two rules with same pattern but different hash input set, not hit def check the hash value is different from the first packet. -5. destroy the rule 1:: - - testpmd> flow destroy 0 rule 1 - testpmd> flow list 0 - - check the rule 1 not exists in the list. - send a MAC_IPV4_UDP packet, you can find it hit default ipv4 profile:: - - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.3",dst="192.168.0.5")/UDP(dport=45)/Raw("x"*480)], iface="enp134s0f0") - - change the fields [Source IP] or [Dest IP], send a packet:: - - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.7",dst="192.168.0.5")/UDP(dport=45)/Raw("x"*480)], iface="enp134s0f0") - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.3",dst="192.168.0.9")/UDP(dport=45)/Raw("x"*480)], iface="enp134s0f0") - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.7",dst="192.168.0.9")/UDP(dport=45)/Raw("x"*480)], iface="enp134s0f0") - - check the hash values of the last two packets are different from the first packet. - destroy the rule 0:: - - testpmd> flow destroy 0 rule 0 - testpmd> flow list 0 - - check the rule 0 not exists in the list. - send a MAC_IPV4_UDP packet, you can find it hit default ipv4 profile:: - - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.3",dst="192.168.0.5")/UDP(dport=45)/Raw("x"*480)], iface="enp134s0f0") - - change the fields [Source IP] or [Dest IP], send a packet:: - - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.7",dst="192.168.0.5")/UDP(dport=45)/Raw("x"*480)], iface="enp134s0f0") - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.3",dst="192.168.0.9")/UDP(dport=45)/Raw("x"*480)], iface="enp134s0f0") - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.7",dst="192.168.0.9")/UDP(dport=45)/Raw("x"*480)], iface="enp134s0f0") - - check the hash values of the last two packets are different from the first packet. - Subcase 2: two rules with same pattern but different hash input set, hit default profile ---------------------------------------------------------------------------------------- @@ -1842,18 +1805,6 @@ Subcase 2: two rules with same pattern but different hash input set, hit default check the hash value is different from the first packet. -5. destroy the rule 1:: - - testpmd> flow destroy 0 rule 1 - testpmd> flow list 0 - - check the rule 1 not exists in the list. - send the MAC_IPV4_PAY packet:: - - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.3",dst="192.168.0.5")/Raw("x"*480)], iface="enp134s0f0") - - check the hash value is not exist. - Subcase 3: two rules, scope smaller created first, and the larger one created later ----------------------------------------------------------------------------------- @@ -1901,20 +1852,6 @@ Subcase 3: two rules, scope smaller created first, and the larger one created la check the hash value is the same as the first packet. -5. destroy the rule 1:: - - testpmd> flow destroy 0 rule 1 - testpmd> flow list 0 - - check the rule 1 not exists in the list. - repeat step 2, get the same result. - destroy the rule 0:: - - testpmd> flow destroy 0 rule 0 - testpmd> flow list 0 - - send a MAC_IPV4_UDP_PAY packet, check the hash values not exists. - Subcase 4: two rules, scope larger created first, and the smaller one created later ----------------------------------------------------------------------------------- @@ -1962,16 +1899,3 @@ Subcase 4: two rules, scope larger created first, and the smaller one created la check the hash value is the same as the first packet. -5. destroy the rule 1:: - - testpmd> flow destroy 0 rule 1 - testpmd> flow list 0 - - check the rule 1 not exists in the list. - repeat step 2, hit ipv4 profile, get the same result. - destroy the rule 0:: - - testpmd> flow destroy 0 rule 0 - testpmd> flow list 0 - - send a MAC_IPV4_UDP_PAY packet, check the hash values not exists.