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 1D2DBA0C55; Mon, 1 Nov 2021 04:31:54 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A77E2410FC; Mon, 1 Nov 2021 04:31:53 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 21B0840DF6 for ; Mon, 1 Nov 2021 04:31:51 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10154"; a="231202978" X-IronPort-AV: E=Sophos;i="5.87,198,1631602800"; d="scan'208";a="231202978" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2021 20:31:51 -0700 X-IronPort-AV: E=Sophos;i="5.87,198,1631602800"; d="scan'208";a="637668835" Received: from unknown (HELO localhost.localdomain) ([10.240.183.103]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2021 20:31:50 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Date: Mon, 1 Nov 2021 20:00:53 +0800 Message-Id: <20211101120056.12228-2-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211101120056.12228-1-zhiminx.huang@intel.com> References: <20211101120056.12228-1-zhiminx.huang@intel.com> Subject: [dts] [PATCH V1 2/5] test_plans/cvl_ip_fragment_rte_flow:modify testplan to adapt dpdk changed 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" 1.according to b3d95f1817288ca228f09b9164d6d3ff6249b175. the default rss not support ipfrag rss, need take a rss rule to enable ipfrag rss for fdir test. 2.according to e4a0a7599d974f05665fec3e4c251659f0b11453. switch have high priority,should take the rule with mark into fdir. Signed-off-by: Zhimin Huang --- .../cvl_ip_fragment_rte_flow_test_plan.rst | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst b/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst index 704b590c..909692cc 100644 --- a/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst +++ b/test_plans/cvl_ip_fragment_rte_flow_test_plan.rst @@ -102,8 +102,17 @@ The steps same as FDIR/RSS test steps take 'MAC_IPV4_FRAG fdir queue index' for fdir example ------------------------------------------------------ + +.. note:: + + The default rss not support ipfragment, need take a rss rule to enable ipfragment rss. + 1. validate and create rule:: + take a ipfragment rss rule: + flow create 0 ingress pattern eth / ipv4 / end actions rss types eth ipv4-frag end key_len 0 queues end / end + + take fdir rule: flow validate 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / mark / end Flow rule validated flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / mark / end @@ -283,7 +292,7 @@ Subcase 4: MAC_IPV4_FRAG fdir drop 1. rules:: - flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions drop / end + flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions drop / mark / end 2. matched packets:: @@ -376,7 +385,7 @@ Subcase 4: MAC_IPV6_FRAG fdir drop 1. rules:: - flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions drop / end + flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext frag_data spec 0x0001 frag_data mask 0x0001 / end actions drop / mark / end 2. matched packets:: @@ -575,8 +584,8 @@ Subcase 1: exclusive validation fdir rule ----------------------------------------- 1. create fdir filter rules:: - flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 / end actions queue index 1 / end - flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 2 / end + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 / end actions queue index 1 / mark / end + flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 2 / mark / end 2. hit pattern/defined input set id, the pkt received for queue 2:: @@ -586,8 +595,8 @@ Subcase 2: exclusive validation fdir rule ----------------------------------------- 1. create fdir filter rules:: - flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 2 / end - flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 / end actions queue index 1 / end + flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 2 / mark / end + flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 / ipv4 src is 192.168.0.20 / end actions queue index 1 / mark / end 2. hit pattern/defined input set id, the pkt received for queue 2:: @@ -600,7 +609,7 @@ Subcase 3: exclusive validation rss rule flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4 end key_len 0 queues end / end flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-frag end key_len 0 queues end / end -2. hit pattern/defined input set id, the pkt received for rss same queue:: +2. hit pattern/defined input set id, the pkt received for rss different queue:: p=Ether()/IP(id=47750)/Raw('X'*666); pkts=fragment6(p, 500) p=Ether()/IP(id=47751)/Raw('X'*666); pkts=fragment6(p, 500) @@ -612,7 +621,7 @@ Subcase 4: exclusive validation rss rule flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4-frag end key_len 0 queues end / end flow create 0 ingress pattern eth / ipv4 / end actions rss types ipv4 end key_len 0 queues end / end -2. hit pattern/defined input set id, the pkt received for rss same queue:: +2. hit pattern/defined input set id, the pkt received for rss different queue:: p=Ether()/IP(id=47750)/Raw('X'*666); pkts=fragment6(p, 500) p=Ether()/IP(id=47751)/Raw('X'*666); pkts=fragment6(p, 500) -- 2.17.1