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 0480EA0A0E; Wed, 3 Feb 2021 07:54:51 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D535D24042E; Wed, 3 Feb 2021 07:54:51 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 9225F24041A for ; Wed, 3 Feb 2021 07:54:50 +0100 (CET) IronPort-SDR: Txk763/IDVxzrFxfeyuYyqP/HT+WC6HmxnOg46XNagBbmoMOKW4zTLlwh+sDxlRIuCK977x7mT cq8Kq795tCIg== X-IronPort-AV: E=McAfee;i="6000,8403,9883"; a="245072377" X-IronPort-AV: E=Sophos;i="5.79,397,1602572400"; d="scan'208";a="245072377" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2021 22:54:48 -0800 IronPort-SDR: VhE2XAQd0fEnRh/Ewtc6F6UnJofulgOoDSXJqvEPls1gaS8xX9RSsH9WxyYD/8oKB9a4sQR3Ac LLsm8ATJecXw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,397,1602572400"; d="scan'208";a="371300194" Received: from pengyuan-dpdk.sh.intel.com ([10.67.117.236]) by fmsmga008.fm.intel.com with ESMTP; 02 Feb 2021 22:54:47 -0800 From: Peng Yuan To: dts@dpdk.org Cc: Peng Yuan Date: Tue, 2 Feb 2021 23:54:08 +0000 Message-Id: <20210202235408.8455-1-yuan.peng@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH v1]test_plans: add GTPoGRE packet check to cvl_advanced_iavf_rss_gtpu_test_plan.rst 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" Add GTPoGRE packet check to cvl_advanced_iavf_rss_gtpu_test_plan.rst Signed-off-by: Peng Yuan diff --git a/test_plans/cvl_advanced_iavf_rss_gtpu_test_plan.rst b/test_plans/cvl_advanced_iavf_rss_gtpu_test_plan.rst index 0b5cfc59..7067f4c3 100644 --- a/test_plans/cvl_advanced_iavf_rss_gtpu_test_plan.rst +++ b/test_plans/cvl_advanced_iavf_rss_gtpu_test_plan.rst @@ -262,6 +262,19 @@ run the same test steps as below: Pattern: outer ipv4 + inner ipv4 ================================ +GTPoGRE is imported in DPDK-21.02. +The Ptype is parsed same as GTP packet, so they match gtp RSS rule. +We just need to add the GTPoGRE packet to the packets check. +we need to add GTPoGRE packet to "basic hit pattern packets", +"hit pattern/defined input set" and "hit pattern/not defined input set". +the GTPoGRE packet format in this pattern is to add:: + + IP(proto=0x2F)/GRE(proto=0x0800)/ + +after Ether layer, before IP layer, just like:: + + sendp([Ether(dst="00:11:22:33:44:55")/IP(proto=0x2F)/GRE(proto=0x0800)/IP()/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x123456)/GTPPDUSessionContainer(type=0, P=1, QFI=0x34)/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="enp134s0f0") + Test case: MAC_IPV4_GTPU_EH_IPV4 with UL/DL =========================================== @@ -1963,6 +1976,14 @@ reconfig all the cases of "Pattern: outer ipv4 + inner ipv4" change the packet's inner L3 layer from IP to IPv6; change the ipv4 address to ipv6 address. +the GTPoGRE packet format in this pattern is to add:: + + IP(proto=0x2F)/GRE(proto=0x0800)/ + +after Ether layer, before IP layer, just like:: + + sendp([Ether(dst="00:11:22:33:44:55")/IP(proto=0x2F)/GRE(proto=0x0800)/IP()/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x123456)/GTPPDUSessionContainer(type=0, P=1, QFI=0x34)/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="enp134s0f0") + ================================ Pattern: outer ipv6 + inner ipv4 ================================ @@ -1974,6 +1995,14 @@ reconfig all the cases of "Pattern: outer ipv4 + inner ipv4" packets: change the packet's outer L3 layer from IP to IPv6; +the GTPoGRE packet format in this pattern is to add:: + + IPv6(nh=0x2F)/GRE(proto=0x86dd)/ + +after Ether layer, before IP layer, just like:: + + sendp([Ether(dst="00:11:22:33:44:55")/IPv6(nh=0x2F)/GRE(proto=0x86dd)/IPv6()/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x123456)/GTPPDUSessionContainer(type=0, P=1, QFI=0x34)/IP(dst="192.168.0.1", src="192.168.0.2")/("X"*480)],iface="enp134s0f0") + ================================ Pattern: outer ipv6 + inner ipv6 ================================ @@ -1988,6 +2017,13 @@ reconfig all the cases of "Pattern: outer ipv4 + inner ipv4" change the packet's inner L3 layer from IP to IPv6; change the ipv4 address to ipv6 address. +the GTPoGRE packet format in this pattern is to add:: + + IPv6(nh=0x2F)/GRE(proto=0x86dd)/ + +after Ether layer, before IP layer, just like:: + + sendp([Ether(dst="00:11:22:33:44:55")/IPv6(nh=0x2F)/GRE(proto=0x86dd)/IPv6()/UDP(dport=2152)/GTP_U_Header(gtp_type=255, teid=0x123456)/GTPPDUSessionContainer(type=0, P=1, QFI=0x34)/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)],iface="enp134s0f0") Test case: MAC_IPV4_GTPU ======================== @@ -2922,6 +2958,7 @@ all the test cases run the same test steps as below: 5. destroy the rule and list rule. 6. send the packet in step 3. check the received packet has different hash value with which in step 3(including the case has no hash value). +Note: the GTPoGRE packets need to be added to symmetric cases as a Ptype, just like toeplitz cases. ========================================== Pattern: symmetric outer ipv4 + inner ipv4 @@ -3516,6 +3553,13 @@ Test case: toeplitz negative case Test case: inner L4 protocol hash ================================= +Note: add two GTPoGRE packets in each subcase with:: + + IPv6(nh=0x2F)/GRE(proto=0x86dd)/ + +or:: + + IP(proto=0x2F)/GRE(proto=0x0800)/ Subcase: MAC_IPV4_GTPU_IPV4_UDP/TCP ----------------------------------- -- 2.17.1