From patchwork Mon Sep 13 07:47:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 98731 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 41E6AA0C4B; Mon, 13 Sep 2021 09:34:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D04D40E28; Mon, 13 Sep 2021 09:34:53 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id CE6A64014F for ; Mon, 13 Sep 2021 09:34:51 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10105"; a="243916479" X-IronPort-AV: E=Sophos;i="5.85,288,1624345200"; d="scan'208";a="243916479" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 00:34:49 -0700 X-IronPort-AV: E=Sophos;i="5.85,288,1624345200"; d="scan'208";a="543041427" Received: from unknown (HELO dpdk-zhaohy-t.sh.intel.com) ([10.240.183.68]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 00:34:48 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Date: Mon, 13 Sep 2021 15:47:06 +0800 Message-Id: <1631519227-68711-1-git-send-email-songx.jiale@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1 1/2] test_plans/cvl_dcf_flow_priority: modify rule priority 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" because the priority of the dpdk rule is changed from 0<1<2... to 0>1>2..., modify the testplan Signed-off-by: Jiale Song --- test_plans/cvl_dcf_flow_priority_test_plan.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test_plans/cvl_dcf_flow_priority_test_plan.rst b/test_plans/cvl_dcf_flow_priority_test_plan.rst index 8ae6052..b73f438 100644 --- a/test_plans/cvl_dcf_flow_priority_test_plan.rst +++ b/test_plans/cvl_dcf_flow_priority_test_plan.rst @@ -118,16 +118,16 @@ test steps for supported pattern ================================ 1. validate rules: two rules have same pattern, input set but different priority and action(priority 0 -> to vf 1, priority 1 -> to vf 2). 2. create rules and list rules. -3. send matched packets, check vf 2 receive the packets for hiting the priority 1. +3. send matched packets, check vf 1 receive the packets for hiting the priority 0. 4. send mismatched packets, check the packets are not received by vf 1 or 2. -5. destroy rule with priority 1, list rules. -6. send matched packets, check vf 1 receive the packets for hiting the priority 0. +5. destroy rule with priority 0, list rules. +6. send matched packets, check vf 2 receive the packets for hiting the priority 1. 7. send mismatched packets, check the packets are not received by vf 1 or 2. -8. recreate rules which priority is 1, list rule. -9. destroy rule with priority 0, list rules. -10. send matched packets, check vf 2 receive the packets for hiting the priority 1. +8. recreate rules which priority is 0, list rule. +9. destroy rule with priority 1, list rules. +10. send matched packets, check vf 1 receive the packets for hiting the priority 0. 11. send mismatched packets, check the packets are not received by vf 1 or 2. -12. destroy rule with priority 1, list rules. +12. destroy rule with priority 0, list rules. 13. send matched packets, check the packets are not received by vf 1 or 2. From patchwork Mon Sep 13 07:47:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 98732 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 3A9ACA0C4B; Mon, 13 Sep 2021 09:34:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F235410E1; Mon, 13 Sep 2021 09:34:55 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id AF3134014F for ; Mon, 13 Sep 2021 09:34:52 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10105"; a="243916483" X-IronPort-AV: E=Sophos;i="5.85,288,1624345200"; d="scan'208";a="243916483" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 00:34:51 -0700 X-IronPort-AV: E=Sophos;i="5.85,288,1624345200"; d="scan'208";a="543041433" Received: from unknown (HELO dpdk-zhaohy-t.sh.intel.com) ([10.240.183.68]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 00:34:50 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Date: Mon, 13 Sep 2021 15:47:07 +0800 Message-Id: <1631519227-68711-2-git-send-email-songx.jiale@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1631519227-68711-1-git-send-email-songx.jiale@intel.com> References: <1631519227-68711-1-git-send-email-songx.jiale@intel.com> Subject: [dts] [PATCH V1 2/2] tests/cvl_dcf_flow_priority: modify the script according to the testplan 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" Signed-off-by: Jiale Song --- tests/TestSuite_cvl_dcf_flow_priority.py | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/tests/TestSuite_cvl_dcf_flow_priority.py b/tests/TestSuite_cvl_dcf_flow_priority.py index 07d99d2..181afc9 100644 --- a/tests/TestSuite_cvl_dcf_flow_priority.py +++ b/tests/TestSuite_cvl_dcf_flow_priority.py @@ -1320,6 +1320,7 @@ class CVLDCFFlowPriorityTest(TestCase): rule1=rte_flow_pattern[0:14] + "priority 0" + rte_flow_pattern[13:length] rule2=rte_flow_pattern[0:14] + "priority 1" + rte_flow_pattern[13:length-7]+ "2" + rte_flow_pattern[length-6:length] rte_flow=[rule1, rule2] + #validate 2 rule self.validate_switch_filter_rule(rte_flow) #create 2 rule @@ -1327,31 +1328,34 @@ class CVLDCFFlowPriorityTest(TestCase): self.check_switch_filter_rule_list(0, rule_list) #send matched packets and check matched_dic = test_vector["matched"] - matched_dic["check_func"]["param"]["expect_port"]=2 self.send_and_check_packets(matched_dic) #send mismatched packets and check mismatched_dic = test_vector["mismatched"] mismatched_dic["check_func"]["param"]["expect_port"]=[1,2] mismatched_dic["expect_results"]["expect_pkts"]=[0,0] self.send_and_check_packets(mismatched_dic) - #destroy rule with priority 1 - self.destroy_switch_filter_rule(0, rule_list[1]) - self.check_switch_filter_rule_list(0, ['0']) - #send matched packets and check - destroy_dict1 = copy.deepcopy(matched_dic) - destroy_dict1["check_func"]["param"]["expect_port"]=1 - self.send_and_check_packets(destroy_dict1) - #recreate rule with priority 1 - self.create_switch_filter_rule(rte_flow[1]) - self.check_switch_filter_rule_list(0, rule_list) + #destroy rule with priority 0 self.destroy_switch_filter_rule(0, rule_list[0]) + rule_list.remove('0') self.check_switch_filter_rule_list(0, ['1']) #send matched packets and check + destroy_dict1 = copy.deepcopy(matched_dic) + destroy_dict1["check_func"]["param"]["expect_port"]=2 + self.send_and_check_packets(destroy_dict1) + + #recreate rule with priority 0 (rule 2) + self.create_switch_filter_rule(rte_flow[0]) + rule_list.insert(0, '2') + #destroy rule with priority 1 + self.destroy_switch_filter_rule(0, rule_list[1]) + self.check_switch_filter_rule_list(0, ['2']) + #send matched packets and check destroy_dict2 = copy.deepcopy(matched_dic) self.send_and_check_packets(destroy_dict2) - #destroy rule with priority 1 and check - self.destroy_switch_filter_rule(0, rule_list[1]) + + #destroy rule with priority 0 and check + self.destroy_switch_filter_rule(0, rule_list[0]) self.check_switch_filter_rule_list(0, []) destroy_dict3 = copy.deepcopy(matched_dic) if isinstance(destroy_dict3["expect_results"]["expect_pkts"], list):