test suite reviews and discussions
 help / color / mirror / Atom feed
From: Jiale Song <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Jiale Song <songx.jiale@intel.com>
Subject: [dts] [PATCH V1 3/4] test_plans/dual_vlan: add a case to test vlan priority value
Date: Mon, 17 Apr 2023 17:41:54 +0000	[thread overview]
Message-ID: <20230417174155.146540-4-songx.jiale@intel.com> (raw)
In-Reply-To: <20230417174155.146540-1-songx.jiale@intel.com>

Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 test_plans/dual_vlan_test_plan.rst | 37 ++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/test_plans/dual_vlan_test_plan.rst b/test_plans/dual_vlan_test_plan.rst
index 11dfa332..e8e54eac 100644
--- a/test_plans/dual_vlan_test_plan.rst
+++ b/test_plans/dual_vlan_test_plan.rst
@@ -445,3 +445,40 @@ Choose the above table's item randomly 30 times and verify that the result is ri
 At last, stop packet forwarding and quit the application::
     testpmd> stop
     testpmd> quit
+
+Test Case: dual vlan priority rx/tx test
+========================================
+
+#. blind port to vfio-pci::
+
+    ./usertools/dpdk-devbind.py -b vfio-pci {pf0_pci} {pf1_pci}
+
+#. launch testpmd with NICs::
+
+      ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -a {pf0_pci} -a {pf1_pci} -n 4 -- -i
+
+#. set testpmd::
+
+    testpmd> set verbose 1
+    testpmd> set fwd mac
+    testpmd> start
+
+#. start tcpdump with tester rx port::
+
+    tcpdump -ei {rx_iface}
+
+#. send dual vlan packet with tester tx port::
+
+    sendp(Ether(dst="FE:EF:65:4C:2C:D0",type=0x8100)/Dot1Q(vlan=1,type=0x8100,prio=1)/Dot1Q(vlan=2,type=0x0800,prio=2)/IP(src="196.222.232.221")/("X"*480),iface="{tx_iface}",count=1,inter=0,verbose=False)
+
+#. check the pkts can be received::
+
+    testpmd> port 0/queue 0: received 1 packets
+    src=00:00:00:00:00:00 - dst=FE:EF:65:4C:2C:D0 - type=0x8100 - length=522 - nb_segs=1 - hw ptype: L2_ETHER  - sw ptype: L2_ETHER_VLAN INNER_L2_ETHER_VLAN  - l2_len=18 - inner_l2_len=4 - Receive queue=0x0
+    ol_flags: PKT_RX_L4_CKSUM_GOOD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN
+
+#. check the tcpdump packet::
+
+    check the pkts can be received by PF and fwd to tester with inner and outer correct vlan ID and priority value.
+    16:50:38.807217 FE:EF:65:4C:2C:D0 > 02:00:00:00:00:00, ethertype 802.1Q (0x8100), length 522: vlan 1, p 1, ethertype 802.1Q, vlan 2, p 2, ethertype 0x0800,
+
-- 
2.25.1


  parent reply	other threads:[~2023-04-17  9:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-17 17:41 [dts] [PATCH V1 0/4] add " Jiale Song
2023-04-17 17:41 ` [dts] [PATCH V1 1/4] test_plans/kernelpf_iavf: add testing steps " Jiale Song
2023-04-17 17:41 ` [dts] [PATCH V1 2/4] tests/kernelpf_iavf: " Jiale Song
2023-04-17 17:41 ` Jiale Song [this message]
2023-04-17 17:41 ` [dts] [PATCH V1 4/4] tests/dual_vlan: add a case " Jiale Song
2023-04-27  7:30   ` Peng, Yuan
2023-04-27  7:38   ` 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=20230417174155.146540-4-songx.jiale@intel.com \
    --to=songx.jiale@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).