test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] test_plans/ddp_ppp_l2tp: supplementary case rss_pppol2tp_ipv4 test plan
@ 2022-06-24  6:38 Li, WeiyuanX
  2022-06-29  1:55 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Li, WeiyuanX @ 2022-06-24  6:38 UTC (permalink / raw)
  To: dts; +Cc: Weiyuan li

From: Weiyuan li <weiyuanx.li@intel.com>

Case rss_pppol2tp_ipv4 lost in test plan, supplementary case rss_pppol2tp_ipv4 test plan.

Signed-off-by: Weiyuan li <weiyuanx.li@intel.com>
---
 test_plans/ddp_ppp_l2tp_test_plan.rst | 52 +++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/test_plans/ddp_ppp_l2tp_test_plan.rst b/test_plans/ddp_ppp_l2tp_test_plan.rst
index 206e50d7..35b0d805 100644
--- a/test_plans/ddp_ppp_l2tp_test_plan.rst
+++ b/test_plans/ddp_ppp_l2tp_test_plan.rst
@@ -387,6 +387,58 @@ Test Case: RSS for PPPoE according to source address
      p=Ether(src="3C:FD:FE:A3:A0:01", dst="4C:FD:FE:A3:A0:02")/
      PPPoE(sessionid=0x7)
 
+Test Case: RSS for PPPoL2TP Ipv4 with default input set
+=======================================================
+
+1. Check flow type to pctype mapping::
+
+    testpmd> show port 0 pctype mapping
+
+2. Update PPPoL2TP IPv4 flow type id 23 to pcytpe id 18 mapping item::
+
+    testpmd> port config 0 pctype mapping update 18 23
+
+3. Check flow type to pctype mapping adds 23 this mapping
+
+4. Reset PPPoL2TP IPv4 hash input set configuration::
+
+    testpmd> port config 0 pctype 18 hash_inset clear all
+
+5. Inner source IPv4 words are 15~16 , enable hash input set for them::
+
+    testpmd> port config 0 pctype 18 hash_inset set field 15
+    testpmd> port config 0 pctype 18 hash_inset set field 16
+
+6. Enable flow type id 23's RSS::
+
+    testpmd> port config all rss 23
+
+7. Start testpmd, set fwd rxonly, enable output print
+
+8. Default hash input set are IPv4 SA, IPv4 DA, sport, dport. Send PPPoL2TP
+   IPv4 packet, check RSS could work, print RTE_MBUF_F_RX_RSS_HASH::
+
+    p=Ether()/IP()/UDP(dport=1701, sport=1701)/PPP_L2TP(proto=0x0021, session_id=0x7)/
+    IP(src="1.1.1.1",dst="2.2.2.2")/UDP(sport=4000, dport=8000)/Raw('x' * 20)
+
+9. Send different inner source, destination address, sport, dport PPPoL2TP
+   IPv4 packets, check to receive packet from different queues::
+
+    p=Ether()/IP()/UDP(sport=1701,dport=1701)/PPP_L2TP(proto=0x0021,session_id=0x7)/
+    IP(src="1.1.1.2",dst="2.2.2.2")/UDP(sport=4000, dport=8000)/Raw("X"* 20)
+    p=Ether()/IP()/UDP(sport=1701,dport=1701)/PPP_L2TP(proto=0x0021,session_id=0x7)/
+    IP(src="1.1.1.1",dst="2.2.2.3")/UDP(sport=4000, dport=8000)/Raw("X"* 20)
+    p=Ether()/IP()/UDP(sport=1701,dport=1701)/PPP_L2TP(proto=0x0021,session_id=0x7)/
+    IP(src="1.1.1.1",dst="2.2.2.2")/UDP(sport=4001, dport=8000)/Raw("X"* 20)
+    p=Ether()/IP()/UDP(sport=1701,dport=1701)/PPP_L2TP(proto=0x0021,session_id=0x7)/
+    IP(src="1.1.1.1",dst="2.2.2.2")/UDP(sport=4000, dport=8001)/Raw("X"* 20)
+
+10. Send different sessionid PPP_L2TP IPv4 packet, check to receive packet
+    from same queue::
+    
+        p=Ether()/IP()/UDP(sport=1701,dport=1701)/PPP_L2TP(proto=0x0021, session_id=0x8)/
+        IP(src="1.1.1.1",dst="2.2.2.2")/UDP(sport=4000, dport=8000)/Raw("X"* 20)
+
 Test Case: RSS for PPPoL2TP IPv4 according to inner source IPv4
 ===============================================================
 
-- 
2.17.1


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

* [dts][PATCH V1] test_plans/ddp_ppp_l2tp: supplementary case rss_pppol2tp_ipv4 test plan
  2022-06-24  6:38 [dts][PATCH V1] test_plans/ddp_ppp_l2tp: supplementary case rss_pppol2tp_ipv4 test plan Li, WeiyuanX
@ 2022-06-29  1:55 ` lijuan.tu
  0 siblings, 0 replies; 2+ messages in thread
From: lijuan.tu @ 2022-06-29  1:55 UTC (permalink / raw)
  To: dts, Li, WeiyuanX; +Cc: Weiyuan li

On Fri, 24 Jun 2022 14:38:51 +0800, "Li, WeiyuanX" <weiyuanx.li@intel.com> wrote:
> From: Weiyuan li <weiyuanx.li@intel.com>
> 
> Case rss_pppol2tp_ipv4 lost in test plan, supplementary case rss_pppol2tp_ipv4 test plan.
> 
> Signed-off-by: Weiyuan li <weiyuanx.li@intel.com>


Applied, thanks

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

end of thread, other threads:[~2022-06-29  1:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-24  6:38 [dts][PATCH V1] test_plans/ddp_ppp_l2tp: supplementary case rss_pppol2tp_ipv4 test plan Li, WeiyuanX
2022-06-29  1:55 ` lijuan.tu

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