[v1] test_plans: add GTPoGRE packet check to cvl_advanced_iavf_rss_gtpu_test_plan.rst
Commit Message
Add GTPoGRE packet check to cvl_advanced_iavf_rss_gtpu_test_plan.rst
Signed-off-by: Peng Yuan <yuan.peng@intel.com>
Comments
> Add GTPoGRE packet check to cvl_advanced_iavf_rss_gtpu_test_plan.rst
>
> Signed-off-by: Peng Yuan <yuan.peng@intel.com>
Applied, thanks
@@ -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
-----------------------------------