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 38FCEA0506; Tue, 24 May 2022 05:01:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 875BC42B73; Tue, 24 May 2022 05:01:00 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 707CC427EC for ; Tue, 24 May 2022 05:00:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653361259; x=1684897259; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3uMAfdnXLN2ilEB4IyfwdhbHFv/dQjxoHvRtKwqs92A=; b=QjdNKqBwfUC2WA0VMiBG6njAcIurJNHAoQ7VGBAaFHGBOG0YcPM/4Kk5 tcQ4CZ2NJR1wDA4mv4CSkznM9cAumEPsAama5uUFn/ZlGncN0ZsgMgqrL BQRseH6SxVcyg1GcfoZGtRmCNM52aYLWp/fMDwF3AyXuKEar7gxFAO3Cf sVI5VWBiGdheO2VMKaiZtY6XXFubB/+IywdS+2R72NhpIbrt6G66rUHKy nvU7/kSIJ5XSUSA61hwLwDbDCXVjbkMrv7oQC0Wrfzzem4SMj6n0GlBlG 6HTCQpWoU20SbuzbU43zDhvJbph/NcQGCUR1EswUS8HqWyQlX7DfB/U1W Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10356"; a="273410031" X-IronPort-AV: E=Sophos;i="5.91,247,1647327600"; d="scan'208";a="273410031" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 20:00:58 -0700 X-IronPort-AV: E=Sophos;i="5.91,247,1647327600"; d="scan'208";a="600996702" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2022 20:00:57 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Subject: [dts][PATCH V2 5/5] test_plans/ice_iavf_ip_fragment_rte_flow:extend mismatch pkts Date: Tue, 24 May 2022 11:00:48 +0800 Message-Id: <20220524030048.34627-5-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220524030048.34627-1-zhiminx.huang@intel.com> References: <20220524030048.34627-1-zhiminx.huang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.add more info for ipfragment rule. 2.mismatch pkt should cover mismatch inputset pkts and mismatch pattern pkts. V2: fix format issue Signed-off-by: Zhimin Huang --- ...ce_iavf_ip_fragment_rte_flow_test_plan.rst | 67 ++++++++++++------- 1 file changed, 43 insertions(+), 24 deletions(-) diff --git a/test_plans/ice_iavf_ip_fragment_rte_flow_test_plan.rst b/test_plans/ice_iavf_ip_fragment_rte_flow_test_plan.rst index d7e4e1b1..2ab727c5 100644 --- a/test_plans/ice_iavf_ip_fragment_rte_flow_test_plan.rst +++ b/test_plans/ice_iavf_ip_fragment_rte_flow_test_plan.rst @@ -126,6 +126,12 @@ take 'MAC_IPV4_FRAG fdir queue index' for fdir example flow create 0 ingress pattern eth / ipv4 fragment_offset spec 0x2000 fragment_offset mask 0x2000 / end actions queue index 1 / mark / end Flow rule #0 created +.. note:: + + For ipfragment rule, it's a fixed combination for parser to know that a fragment pkt. + dpdk care about the bit 12-13 of fragment offset, so the valid range is 0x2000-0x1fff, the spec is 0x2000 and mask is 0x2000. + + 2. send matched pkts and check two pkts distributed to queue 1, `RSS hash=0x261a7deb - RSS queue=0x1` in output:: scapy: @@ -144,17 +150,16 @@ take 'MAC_IPV4_FRAG fdir queue index' for fdir example 3. send mismatched pkts and check fdir id is none:: scapy: - p = Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666) - pkts=fragment6(p, 500) - sendp(pkts, iface="enp1s0") + Ether(dst='00:11:22:33:55:66')/IP()/Raw('X'*666) + Ether(dst='00:11:22:33:55:66')/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666) + sendp(p, iface="enp1s0") - Sent 2 packets. - dut.10.240.183.133: port 0/queue 3: received 1 packets - src=00:00:00:00:00:00 - dst=FF:FF:FF:FF:FF:FF - type=0x86dd - length=494 - nb_segs=1 - RSS hash=0xe5ae2d03 - RSS queue=0x3 - hw ptype: L2_ETHER L3_IPV6_EXT_UNKNOWN L4_FRAG - sw ptype: L2_ETHER L3_IPV6_EXT L4_FRAG - l2_len=14 - l3_len=48 - l4_len=0 - Receive queue=0x3 - ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_GOOD - port 0/queue 3: received 1 packets - src=00:00:00:00:00:00 - dst=FF:FF:FF:FF:FF:FF - type=0x86dd - length=296 - nb_segs=1 - RSS hash=0xe5ae2d03 - RSS queue=0x3 - hw ptype: L2_ETHER L3_IPV6_EXT_UNKNOWN L4_FRAG - sw ptype: L2_ETHER L3_IPV6_EXT L4_FRAG - l2_len=14 - l3_len=48 - l4_len=0 - Receive queue=0x3 - ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_GOOD + port 0/queue 4: received 1 packets + src=00:00:00:00:00:00 - dst=00:11:22:33:55:66 - type=0x0800 - length=700 - nb_segs=1 - RSS hash=0xafca6174 - RSS queue=0x4 - hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG - sw ptype: L2_ETHER L3_IPV4 - l2_len=14 - l3_len=20 - Receive queue=0x4 + ol_flags: RTE_MBUF_F_RX_RSS_HASH RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_UNKNOWN + port 0/queue 0: received 1 packets + src=00:00:00:00:00:00 - dst=00:11:22:33:55:66 - type=0x86dd - length=728 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV6_EXT_UNKNOWN L4_FRAG - sw ptype: L2_ETHER L3_IPV6_EXT L4_FRAG - l2_len=14 - l3_len=48 - l4_len=0 - Receive queue=0x0 + ol_flags: RTE_MBUF_F_RX_L4_CKSUM_GOOD RTE_MBUF_F_RX_IP_CKSUM_GOOD RTE_MBUF_F_RX_OUTER_L4_CKSUM_UNKNOWN 4. destroy rule re-send step 2 pkts and check fdir id is none:: @@ -263,7 +268,8 @@ Subcase 1: MAC_IPV4_FRAG fdir queue index 3. unmatched packets:: - p=Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666); pkt=fragment6(p, 500) + Ether()/IP()/Raw('X'*666) + Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666) Subcase 2: MAC_IPV4_FRAG fdir rss queues ----------------------------------------- @@ -278,7 +284,8 @@ Subcase 2: MAC_IPV4_FRAG fdir rss queues 3. unmatched packets:: - p=Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666); pkt=fragment6(p, 500) + Ether()/IP()/Raw('X'*666) + Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666) Subcase 3: MAC_IPV4_FRAG fdir passthru -------------------------------------- @@ -293,7 +300,8 @@ Subcase 3: MAC_IPV4_FRAG fdir passthru 3. unmatched packets:: - p=Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666); pkt=fragment6(p, 500) + Ether()/IP()/Raw('X'*666) + Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666) Subcase 4: MAC_IPV4_FRAG fdir drop ---------------------------------- @@ -308,7 +316,8 @@ Subcase 4: MAC_IPV4_FRAG fdir drop 3. unmatched packets:: - p=Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666); pkt=fragment6(p, 500) + Ether()/IP()/Raw('X'*666) + Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666) Subcase 5: MAC_IPV4_FRAG fdir mark+rss -------------------------------------- @@ -323,7 +332,8 @@ Subcase 5: MAC_IPV4_FRAG fdir mark+rss 3. unmatched packets:: - p=Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666); pkt=fragment6(p, 500) + Ether()/IP()/Raw('X'*666) + Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666) Subcase 6: MAC_IPV4_FRAG fdir mark ---------------------------------- @@ -338,7 +348,8 @@ Subcase 6: MAC_IPV4_FRAG fdir mark 3. unmatched packets:: - p=Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666); pkt=fragment6(p, 500) + Ether()/IP()/Raw('X'*666) + Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666) Test case: MAC_IPV6_FRAG pattern fdir fragment ============================================== @@ -356,7 +367,8 @@ Subcase 1: MAC_IPV6_FRAG fdir queue index 3. unmatched packets:: - p=Ether()/IP(id=47750)/Raw('X'*666); pkts=fragment(p, 500) + Ether()/IPv6()/Raw('X'*666) + Ether()/IP(id=47750)/Raw('X'*666) Subcase 2: MAC_IPV6_FRAG fdir rss queues ---------------------------------------- @@ -371,7 +383,8 @@ Subcase 2: MAC_IPV6_FRAG fdir rss queues 3. unmatched packets:: - p=Ether()/IP(id=47750)/Raw('X'*666); pkts=fragment(p, 500) + Ether()/IPv6()/Raw('X'*666) + Ether()/IP(id=47750)/Raw('X'*666) Subcase 3: MAC_IPV6_FRAG fdir passthru -------------------------------------- @@ -386,7 +399,8 @@ Subcase 3: MAC_IPV6_FRAG fdir passthru 3. unmatched packets:: - p=Ether()/IP(id=47750)/Raw('X'*666); pkts=fragment(p, 500) + Ether()/IPv6()/Raw('X'*666) + Ether()/IP(id=47750)/Raw('X'*666) Subcase 4: MAC_IPV6_FRAG fdir drop ---------------------------------- @@ -401,7 +415,8 @@ Subcase 4: MAC_IPV6_FRAG fdir drop 3. unmatched packets:: - p=Ether()/IP(id=47750)/Raw('X'*666); pkts=fragment(p, 500) + Ether()/IPv6()/Raw('X'*666) + Ether()/IP(id=47750)/Raw('X'*666) Subcase 5: MAC_IPV6_FRAG fdir mark+rss -------------------------------------- @@ -416,7 +431,8 @@ Subcase 5: MAC_IPV6_FRAG fdir mark+rss 3. unmatched packets:: - p=Ether()/IP(id=47750)/Raw('X'*666); pkts=fragment(p, 500) + Ether()/IPv6()/Raw('X'*666) + Ether()/IP(id=47750)/Raw('X'*666) Subcase 6: MAC_IPV6_FRAG fdir mark ---------------------------------- @@ -431,7 +447,8 @@ Subcase 6: MAC_IPV6_FRAG fdir mark 3. unmatched packets:: - p=Ether()/IP(id=47750)/Raw('X'*666); pkts=fragment(p, 500) + Ether()/IPv6()/Raw('X'*666) + Ether()/IP(id=47750)/Raw('X'*666) Test case: MAC_IPV4_FRAG_fdir_with_l2 ===================================== @@ -464,7 +481,8 @@ take 'mac_ipv4_frag_l3src_fdir_queue_index' example:: 3.unmatched packets: - p=Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666); pkts=fragment6(p, 500) + Ether()/IP(src='192.168.1.1')/Raw('X'*666) + Ether()/IPv6()/IPv6ExtHdrFragment(id=47750)/Raw('X'*666) subcase 1: MAC_IPV4_FRAG_fdir_with_l3dst ---------------------------------------- @@ -491,7 +509,8 @@ take 'mac_ipv6_frag_l3src_fdir_queue_index' example:: 3.unmatched packets: - p=Ether()/IP(id=47750, src='192.168.1.1')/Raw('X'*666); pkts=fragment(p, fragsize=500) + Ether()/IPv6(src='2001::1')/Raw('X'*666) + Ether()/IP(id=47750)/Raw('X'*666) subcase 1: MAC_IPV6_FRAG_fdir_with_l3dst ---------------------------------------- -- 2.17.1