test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH v2] test_plans/flexible_rxd_test_plan:add MPLS cases
@ 2021-03-03  6:50 Hailin Xu
  2021-03-04  5:13 ` Lin, Xueqin
  0 siblings, 1 reply; 3+ messages in thread
From: Hailin Xu @ 2021-03-03  6:50 UTC (permalink / raw)
  To: dts; +Cc: xueqin.lin, Hailin Xu

v1: add MPLS test cases.
v2: modify hierarc.

Signed-off-by: Hailin Xu <hailinx.xu@intel.com>
---
 test_plans/flexible_rxd_test_plan.rst | 330 +++++++++++++++++++++++++-
 1 file changed, 326 insertions(+), 4 deletions(-)

diff --git a/test_plans/flexible_rxd_test_plan.rst b/test_plans/flexible_rxd_test_plan.rst
index 1520d5f6..c3a0e1c6 100644
--- a/test_plans/flexible_rxd_test_plan.rst
+++ b/test_plans/flexible_rxd_test_plan.rst
@@ -45,7 +45,7 @@ network interface card.
 Prerequisites
 =============
 
-Copy correct ``ice.pkg`` into ``/usr/lib/firmware/intel/ice/ddp/``, \
+Copy correct ``ice.pkg`` into ``/lib/firmware/updates/intel/ice/ddp/``, \
 For the test cases, comms package is expected.
 
 Prepare test toplogoy, in the test case, it requires
@@ -89,8 +89,6 @@ Bind Intel E810 interface to igb_uio driver, (e.g. 0000:18:00.0) ::
 
   ./usertools/dpdk-devbind.py -b igb_uio 18:00.0
 
-
-
 Test Case 01: Check single VLAN fields in RXD (802.1Q)
 ======================================================
 
@@ -116,7 +114,7 @@ Send a packet with VLAN tag from test network interface::
 Please notice
 
 - Change ethernet source address with your test network interface's address
-- Make sure the ethernet destination addres is NOT your real E810 interface's address
+- Make sure the ethernet destination address is NOT your real E810 interface's address
 
 Check the output in testpmd, **ctag=1:0:23** is expected, which is consistent with VLAN tag set in test packet::
 
@@ -372,3 +370,327 @@ Replace correct ice.pkg to /lib/firmware/updates/intel/ice/ddp/ice.pkg,then relo
 
   rmmod ice
   modprobe ice.ko
+
+MPLS cases
+==========
+
+Test steps are same to ``Test Case 01``, just change the launch command of testpmd, test packet and expected output
+
+MPLS cases use same parameter Launch testpmd::
+
+    ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -w af:01.0,proto_xtr=ip_offset -- -i  --portmask=0x1 --nb-cores=2
+
+check RXDID value correct::
+
+    expected: RXDID[25]
+
+scapy prepare::
+
+    about scapy:
+    from scapy.contrib.mpls import MPLS
+
+Test Case: Check ip offset of ip
+--------------------------------
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=18
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=18
+
+Test Case: check ip offset with vlan
+------------------------------------
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=22
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=22
+
+Test Case: check offset with 2 vlan tag
+---------------------------------------
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=26
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=26
+
+Test Case: check ip offset with multi MPLS
+------------------------------------------
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=18
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(s=0)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=22
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=26
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=30
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=34
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=18
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(s=0)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=22
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=26
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=30
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=34
+
+Test Case: check ip offset with multi MPLS with vlan tag
+--------------------------------------------------------
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=22
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=26
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=30
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=34
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=38
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=22
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=26
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=30
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=34
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=38
+
+Test Case: check ip offset with multi MPLS with 2 vlan tag
+----------------------------------------------------------
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=26
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=30
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=34
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=38
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IP()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=42
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=26
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=30
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=34
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=38
+
+Test packet::
+
+    p = Ether(dst="00:11:22:33:44:55",type=0x88A8)/Dot1Q(type=0x8100)/Dot1Q(type=0x8847)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=0)/MPLS(s=1)/IPv6()
+
+Expected output in testpmd::
+
+    Protocol Offset:ip_offset=42
-- 
2.17.1


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

* Re: [dts] [PATCH v2] test_plans/flexible_rxd_test_plan:add MPLS cases
  2021-03-03  6:50 [dts] [PATCH v2] test_plans/flexible_rxd_test_plan:add MPLS cases Hailin Xu
@ 2021-03-04  5:13 ` Lin, Xueqin
  2021-03-04  8:36   ` Tu, Lijuan
  0 siblings, 1 reply; 3+ messages in thread
From: Lin, Xueqin @ 2021-03-04  5:13 UTC (permalink / raw)
  To: Xu, HailinX, dts

> -----Original Message-----
> From: Xu, HailinX <hailinx.xu@intel.com>
> Sent: Wednesday, March 3, 2021 2:50 PM
> To: dts@dpdk.org
> Cc: Lin, Xueqin <xueqin.lin@intel.com>; Xu, HailinX <hailinx.xu@intel.com>
> Subject: [dts][PATCH v2] test_plans/flexible_rxd_test_plan:add MPLS cases
> 
> v1: add MPLS test cases.
> v2: modify hierarc.
> 
> Signed-off-by: Hailin Xu <hailinx.xu@intel.com>
Acked-by: Lin Xueqin <Xueqin.lin@intel.com>

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

* Re: [dts] [PATCH v2] test_plans/flexible_rxd_test_plan:add MPLS cases
  2021-03-04  5:13 ` Lin, Xueqin
@ 2021-03-04  8:36   ` Tu, Lijuan
  0 siblings, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2021-03-04  8:36 UTC (permalink / raw)
  To: Lin, Xueqin, Xu, HailinX, dts

> > v1: add MPLS test cases.
> > v2: modify hierarc.
> >
> > Signed-off-by: Hailin Xu <hailinx.xu@intel.com>
> Acked-by: Lin Xueqin <Xueqin.lin@intel.com>

Applied.

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

end of thread, other threads:[~2021-03-04  8:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03  6:50 [dts] [PATCH v2] test_plans/flexible_rxd_test_plan:add MPLS cases Hailin Xu
2021-03-04  5:13 ` Lin, Xueqin
2021-03-04  8:36   ` 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).