test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Li, WeiyuanX" <weiyuanx.li@intel.com>
To: dts@dpdk.org
Cc: Weiyuan li <weiyuanx.li@intel.com>
Subject: [dts][PATCH V1] test_plans/ddp_ppp_l2tp: supplementary case rss_pppol2tp_ipv4 test plan
Date: Fri, 24 Jun 2022 14:38:51 +0800	[thread overview]
Message-ID: <20220624063851.1495-1-weiyuanx.li@intel.com> (raw)

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


             reply	other threads:[~2022-06-24  6:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-24  6:38 Li, WeiyuanX [this message]
2022-06-29  1:55 ` lijuan.tu

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=20220624063851.1495-1-weiyuanx.li@intel.com \
    --to=weiyuanx.li@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).