test suite reviews and discussions
 help / color / mirror / Atom feed
From: Peng Yuan <yuan.peng@intel.com>
To: dts@dpdk.org
Cc: Peng Yuan <yuan.peng@intel.com>
Subject: [dts] [PATCH v1]test_plans: add GTPoGRE packet check to cvl_advanced_iavf_rss_gtpu_test_plan.rst
Date: Tue,  2 Feb 2021 23:54:08 +0000	[thread overview]
Message-ID: <20210202235408.8455-1-yuan.peng@intel.com> (raw)

Add GTPoGRE packet check to cvl_advanced_iavf_rss_gtpu_test_plan.rst

Signed-off-by: Peng Yuan <yuan.peng@intel.com>

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


             reply	other threads:[~2021-02-03  6:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-02 23:54 Peng Yuan [this message]
2021-02-19  7:12 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210202235408.8455-1-yuan.peng@intel.com \
    --to=yuan.peng@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).