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 66EFBA0C53; Thu, 14 Oct 2021 07:13:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2C4CE40042; Thu, 14 Oct 2021 07:13:26 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 1390740041 for ; Thu, 14 Oct 2021 07:13:23 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10136"; a="214540587" X-IronPort-AV: E=Sophos;i="5.85,371,1624345200"; d="scan'208";a="214540587" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 22:13:23 -0700 X-IronPort-AV: E=Sophos;i="5.85,371,1624345200"; d="scan'208";a="442591998" Received: from unknown (HELO dpdk-zhaohy-t.sh.intel.com) ([10.240.183.68]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 22:13:21 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Date: Thu, 14 Oct 2021 13:26:56 +0800 Message-Id: <1634189216-34714-1-git-send-email-songx.jiale@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/rteflow_priority: add mark to fdir 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" if the rule supports switch and fdir, downloading the rule directly to fdir requires adding a 'mark' to the rule Signed-off-by: Jiale Song --- test_plans/rteflow_priority_test_plan.rst | 4 ++-- tests/TestSuite_rteflow_priority.py | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) mode change 100644 => 100755 test_plans/rteflow_priority_test_plan.rst diff --git a/test_plans/rteflow_priority_test_plan.rst b/test_plans/rteflow_priority_test_plan.rst old mode 100644 new mode 100755 index b1815ce..4ca1c22 --- a/test_plans/rteflow_priority_test_plan.rst +++ b/test_plans/rteflow_priority_test_plan.rst @@ -77,14 +77,14 @@ Patterns in this case: #. Create a rule with priority 0, Check the flow can be created but it will map to fdir filter:: - testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 2 / end + testpmd> flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 2 / mark / end ice_interrupt_handler(): OICR: MDD event ice_flow_create(): Succeeded to create (1) flow Flow rule #0 created #. Create a rule with priority 1, check the flow can not be created for the vallue of priority is 0 in non-pipeline mode:: - testpmd> flow create 0 priority 1 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 2 / end + testpmd> flow create 0 priority 1 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 2 / mark / end ice_flow_create(): Failed to create flow Caught error type 4 (priority field): cause: 0x7ffe24e65738, Not support priority.: Invalid argument diff --git a/tests/TestSuite_rteflow_priority.py b/tests/TestSuite_rteflow_priority.py index 23aea82..42b05fb 100755 --- a/tests/TestSuite_rteflow_priority.py +++ b/tests/TestSuite_rteflow_priority.py @@ -203,10 +203,11 @@ class TestRteflowPriority(TestCase): command = self.path + '-c %s -n 4 -a %s --log-level="ice,7" -- -i --portmask=%s --rxq=10 --txq=10' % (self.coreMask, self.dut.ports_info[0]['pci'], utils.create_mask([self.dut_ports[0]])) out = self.dut.send_expect(command, "testpmd> ", 120) self.logger.debug(out) - - out=self.dut.send_expect("flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 2 / end", "testpmd>", 15) + import pdb + pdb.set_trace() + out=self.dut.send_expect("flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 2 / mark / end", "testpmd>", 15) self.verify( "Successed" and "(1)" in out, "failed: rule can't be created to fdir") - out=self.dut.send_expect("flow create 0 priority 1 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 2 / end", "testpmd>", 15) + out=self.dut.send_expect("flow create 0 priority 1 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 2 / mark / end", "testpmd>", 15) self.verify( "Failed" in out, "failed: default value of priority is 0 in non-pipeline mode") self.dut.send_expect("flow flush 0", "testpmd>", 20) self.dut.send_expect("quit", "#", 50) @@ -216,9 +217,9 @@ class TestRteflowPriority(TestCase): out = self.dut.send_expect(command, "testpmd> ", 120) self.logger.debug(out) - out=self.dut.send_expect("flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 2 / end", "testpmd>", 15) + out=self.dut.send_expect("flow create 0 priority 0 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 2 / mark / end", "testpmd>", 15) self.verify( "Successed" and "(1)" in out, "failed: rule can't be created to fdir") - out=self.dut.send_expect("flow create 0 priority 1 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 2 / end", "testpmd>", 15) + out=self.dut.send_expect("flow create 0 priority 1 ingress pattern eth / ipv4 src is 192.168.0.2 dst is 192.168.0.3 tos is 4 / end actions queue index 2 / mark / end", "testpmd>", 15) self.verify( "Failed" in out, "failed: default value of priority is 0 in non-pipeline mode") self.dut.send_expect("flow flush 0", "testpmd>", 20) self.dut.send_expect("quit", "#", 50) -- 2.17.1