test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH v1]test_plans: add GTPoGRE packet check to cvl_advanced_iavf_rss_gtpu_test_plan.rst
@ 2021-02-02 23:54 Peng Yuan
  2021-02-19  7:12 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Yuan @ 2021-02-02 23:54 UTC (permalink / raw)
  To: dts; +Cc: Peng Yuan

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH v1]test_plans: add GTPoGRE packet check to cvl_advanced_iavf_rss_gtpu_test_plan.rst
  2021-02-02 23:54 [dts] [PATCH v1]test_plans: add GTPoGRE packet check to cvl_advanced_iavf_rss_gtpu_test_plan.rst Peng Yuan
@ 2021-02-19  7:12 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2021-02-19  7:12 UTC (permalink / raw)
  To: Peng, Yuan, dts; +Cc: Peng, Yuan

> Add GTPoGRE packet check to cvl_advanced_iavf_rss_gtpu_test_plan.rst
> 
> Signed-off-by: Peng Yuan <yuan.peng@intel.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-19  7:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02 23:54 [dts] [PATCH v1]test_plans: add GTPoGRE packet check to cvl_advanced_iavf_rss_gtpu_test_plan.rst Peng Yuan
2021-02-19  7:12 ` Tu, Lijuan

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).