From patchwork Fri Oct 22 14:44:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zou Ping X-Patchwork-Id: 102613 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 08CAEA0C43; Fri, 22 Oct 2021 08:14:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C20584069D; Fri, 22 Oct 2021 08:14:24 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 8B6DA40040 for ; Fri, 22 Oct 2021 08:14:23 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10144"; a="227999112" X-IronPort-AV: E=Sophos;i="5.87,171,1631602800"; d="scan'208";a="227999112" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2021 23:14:16 -0700 X-IronPort-AV: E=Sophos;i="5.87,171,1631602800"; d="scan'208";a="633103184" Received: from unknown (HELO localhost.localdomain) ([10.240.183.103]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2021 23:14:15 -0700 From: Zou Ping To: dts@dpdk.org Cc: Zou Ping Date: Fri, 22 Oct 2021 22:44:39 +0800 Message-Id: <20211022144440.10099-1-pingx.zou@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1 1/2] tests/rteflow_priority: modify the priority of switch and fdir 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" the priority of switch and fdir changed,modified influenced rules. Signed-off-by: Zou Ping --- tests/TestSuite_rteflow_priority.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_rteflow_priority.py b/tests/TestSuite_rteflow_priority.py index 23aea82f..3fb8720a 100755 --- a/tests/TestSuite_rteflow_priority.py +++ b/tests/TestSuite_rteflow_priority.py @@ -204,9 +204,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) @@ -216,9 +216,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)