From patchwork Wed Jun 22 17:11:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 113228 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 1907EA04FD; Wed, 22 Jun 2022 10:46:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 13AE340A84; Wed, 22 Jun 2022 10:46:42 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id CBB2440689 for ; Wed, 22 Jun 2022 10:46:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655887600; x=1687423600; h=from:to:cc:subject:date:message-id; bh=eE0OvQMKVgyfLs8UpdEywiXND/Ebjztar8UezQzw9FM=; b=HQZ8eAwdBw/VzNxf9CNvfLDP8pGHvj0nLNwWlvOng2zk4Nl7VmmZKwoE Ga6OHgD4PBQNJIbezPa206j1IfyujqE2ButfA+s+oi2YRR0icoCAgaseW WTUPS7tqLpwqj/oavTi/3R6pQKPLbsb+IQWu6Ef1YCcKoZOFjBjotIEZo 4bkL2Mts+AV48pBVD7b0KNMgpR/gYdBOkKPZQ4ubsVHfkTZWc81gz3M7L gOgg+CaGEStGjekYwsEiUXsapSI/I9kwFE4sXyuSSAbxa9KxNQeqLQJ+R kUMptW0S/gc91f/iCxoJRG5FLdnFDVpmZlp3PJAEev3Nlxmmtyhba25hN g==; X-IronPort-AV: E=McAfee;i="6400,9594,10385"; a="344348461" X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="344348461" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 01:46:39 -0700 X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="592081065" Received: from unknown (HELO localhost.localdomain) ([10.239.252.94]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 01:46:37 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] tests/ice_limit_value_test: add mark for fdir rule Date: Wed, 22 Jun 2022 17:11:14 +0000 Message-Id: <20220622171114.25002-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.17.1 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 1.fdir rule need add mark id 2.synchronize packages in testplan and case Signed-off-by: Jiale Song --- test_plans/ice_limit_value_test_test_plan.rst | 8 ++++---- tests/TestSuite_ice_limit_value_test.py | 14 ++++++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/test_plans/ice_limit_value_test_test_plan.rst b/test_plans/ice_limit_value_test_test_plan.rst index ff859038..70311efd 100644 --- a/test_plans/ice_limit_value_test_test_plan.rst +++ b/test_plans/ice_limit_value_test_test_plan.rst @@ -350,8 +350,8 @@ Subcase 2: add/delete rules on two VFs 1. create a rule on each vf:: - flow create 0 ingress pattern eth / ipv4 src is 192.168.0.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / end - flow create 1 ingress pattern eth / ipv4 src is 192.168.0.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / end + flow create 0 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / mark id 1 / end + flow create 1 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / mark id 2 / end return the message:: @@ -376,8 +376,8 @@ Subcase 2: add/delete rules on two VFs 4. create the rule on each vf one more time, check the rules listed:: - flow create 0 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / end - flow create 1 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / end + flow create 0 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / mark id 1 / end + flow create 1 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / mark id 2 / end 5. send matched packet:: diff --git a/tests/TestSuite_ice_limit_value_test.py b/tests/TestSuite_ice_limit_value_test.py index 180c8c6d..b75cea84 100644 --- a/tests/TestSuite_ice_limit_value_test.py +++ b/tests/TestSuite_ice_limit_value_test.py @@ -1015,8 +1015,8 @@ class TestICELimitValue(TestCase): """ dut_file_dir = "/tmp/" rules = [ - "flow create 0 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / end", - "flow create 1 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / end", + "flow create 0 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / mark id 1 / end", + "flow create 1 ingress pattern eth / ipv4 src is 192.168.56.0 dst is 192.1.0.0 tos is 4 / tcp src is 22 dst is 23 / end actions queue index 5 / mark id 2 / end", ] pkts = [ 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.56.0",dst="192.1.0.0", tos=4)/TCP(sport=22,dport=23)/Raw("x" * 80)', @@ -1057,11 +1057,17 @@ class TestICELimitValue(TestCase): self.create_fdir_rule(rules, check_stats=True) out_0 = self.send_pkts_getouput(pkts=pkts[0], pf_id=0) rfc.check_iavf_fdir_mark( - out_0, pkt_num=1, check_param={"port_id": 0, "queue": 5}, stats=True + out_0, + pkt_num=1, + check_param={"port_id": 0, "mark_id": 1, "queue": 5}, + stats=True, ) out_1 = self.send_pkts_getouput(pkts=pkts[1], pf_id=0) rfc.check_iavf_fdir_mark( - out_1, pkt_num=1, check_param={"port_id": 1, "queue": 5}, stats=True + out_1, + pkt_num=1, + check_param={"port_id": 1, "mark_id": 2, "queue": 5}, + stats=True, ) def launch_testpmd_with_mark(self, rxq=64, txq=64):