test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] test_plans: add a test case to test plan
@ 2019-06-26  9:35 zhuwenhui
  0 siblings, 0 replies; 3+ messages in thread
From: zhuwenhui @ 2019-06-26  9:35 UTC (permalink / raw)
  To: dts; +Cc: Peng Yuan

From: Peng Yuan <yuan.peng@intel.com>

Add a test case to vlan_test_plan.rst

Signed-off-by: Peng Yuan <yuan.peng@intel.com>

diff --git a/test_plans/vlan_test_plan.rst b/test_plans/vlan_test_plan.rst
index 54df0b6..a5058f8 100644
--- a/test_plans/vlan_test_plan.rst
+++ b/test_plans/vlan_test_plan.rst
@@ -76,7 +76,38 @@ The -n command is used to select the number of memory channels. It should match
 Set the verbose level to 1 to display information for each received packet::
 
   testpmd> set verbose 1
+  testpmd> vlan set filter on
 
+Test Case: Enable receipt of VLAN packets and disable VLAN header stripping
+===========================================================================
+
+Setup the ``mac`` forwarding mode::
+
+  testpmd> set fwd mac
+  Set mac packet forwarding mode
+
+Enable the receipt of VLAN packets with VLAN Tag Identifier 1 on port 0::
+
+  testpmd> rx_vlan add 1 0
+  testpmd> vlan set strip off 0
+  testpmd> start
+    rxonly packet forwarding - CRC stripping disabled - packets/burst=32
+    nb forwarding cores=1 - nb forwarding ports=10
+    RX queues=1 - RX desc=128 - RX free threshold=64
+    RX threshold registers: pthresh=8 hthresh=8 wthresh=4
+    TX queues=1 - TX desc=512 - TX free threshold=0
+    TX threshold registers: pthresh=32 hthresh=8 wthresh=8
+
+Configure the traffic generator to send VLAN packets with the Tag Identifier
+ ``1`` and send 1 packet on port ``A``.
+
+Verify that the VLAN packet was correctly received on port ``B`` with VLAN tag ``1``.
+
+Configure the traffic generator to send VLAN packets with not matched Tag
+Identifier and send 1 packet on port ``A``.
+
+Verify that the VLAN packet was not correctly received on port ``B`` with
+this not matched VLAN Tag.
 
 Test Case: Enable receipt of VLAN packets and VLAN header stripping
 ===================================================================
@@ -89,6 +120,7 @@ Setup the ``mac`` forwarding mode::
 Enable the receipt of VLAN packets with VLAN Tag Identifier 1 on port 0::
 
   testpmd> rx_vlan add 1 0
+  testpmd> vlan set strip on 0
   testpmd> start
     rxonly packet forwarding - CRC stripping disabled - packets/burst=32
     nb forwarding cores=1 - nb forwarding ports=10
@@ -100,8 +132,7 @@ Enable the receipt of VLAN packets with VLAN Tag Identifier 1 on port 0::
 Configure the traffic generator to send VLAN packets with the Tag Identifier
  ``1`` and send 1 packet on port ``A``.
 
-Verify that the VLAN packet was correctly received on port ``B`` with VLAN tag ``1``.
-
+Verify that the VLAN packet was correctly received on port ``B`` without VLAN tag ``1``.
 
 Test Case: Disable receipt of VLAN packets
 ==========================================
-- 
2.14.3


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

* Re: [dts] [PATCH] test_plans: add a test case to test plan
  2019-06-26  9:40 Peng Yuan
@ 2019-07-10  6:32 ` Tu, Lijuan
  0 siblings, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2019-07-10  6:32 UTC (permalink / raw)
  To: Peng, Yuan, dts; +Cc: Peng, Yuan

Applying: test_plans: add a test case to test plan
error: patch failed: test_plans/vlan_test_plan.rst:100
error: test_plans/vlan_test_plan.rst: patch does not apply
Patch failed at 0001 test_plans: add a test case to test plan

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan
> Sent: Wednesday, June 26, 2019 5:40 PM
> To: dts@dpdk.org
> Cc: Peng, Yuan <yuan.peng@intel.com>
> Subject: [dts] [PATCH] test_plans: add a test case to test plan
> 
> Add a test case to vlan_test_plan.rst
> 
> Signed-off-by: Peng Yuan <yuan.peng@intel.com>
> 
> diff --git a/test_plans/vlan_test_plan.rst b/test_plans/vlan_test_plan.rst
> index 54df0b6..a5058f8 100644
> --- a/test_plans/vlan_test_plan.rst
> +++ b/test_plans/vlan_test_plan.rst
> @@ -76,7 +76,38 @@ The -n command is used to select the number of
> memory channels. It should match  Set the verbose level to 1 to display
> information for each received packet::
> 
>    testpmd> set verbose 1
> +  testpmd> vlan set filter on
> 
> +Test Case: Enable receipt of VLAN packets and disable VLAN header
> +stripping
> +===============================================================
> ========
> +====
> +
> +Setup the ``mac`` forwarding mode::
> +
> +  testpmd> set fwd mac
> +  Set mac packet forwarding mode
> +
> +Enable the receipt of VLAN packets with VLAN Tag Identifier 1 on port 0::
> +
> +  testpmd> rx_vlan add 1 0
> +  testpmd> vlan set strip off 0
> +  testpmd> start
> +    rxonly packet forwarding - CRC stripping disabled - packets/burst=32
> +    nb forwarding cores=1 - nb forwarding ports=10
> +    RX queues=1 - RX desc=128 - RX free threshold=64
> +    RX threshold registers: pthresh=8 hthresh=8 wthresh=4
> +    TX queues=1 - TX desc=512 - TX free threshold=0
> +    TX threshold registers: pthresh=32 hthresh=8 wthresh=8
> +
> +Configure the traffic generator to send VLAN packets with the Tag
> +Identifier  ``1`` and send 1 packet on port ``A``.
> +
> +Verify that the VLAN packet was correctly received on port ``B`` with VLAN
> tag ``1``.
> +
> +Configure the traffic generator to send VLAN packets with not matched
> +Tag Identifier and send 1 packet on port ``A``.
> +
> +Verify that the VLAN packet was not correctly received on port ``B``
> +with this not matched VLAN Tag.
> 
>  Test Case: Enable receipt of VLAN packets and VLAN header stripping
> ================================================================
> ===
> @@ -89,6 +120,7 @@ Setup the ``mac`` forwarding mode::
>  Enable the receipt of VLAN packets with VLAN Tag Identifier 1 on port 0::
> 
>    testpmd> rx_vlan add 1 0
> +  testpmd> vlan set strip on 0
>    testpmd> start
>      rxonly packet forwarding - CRC stripping disabled - packets/burst=32
>      nb forwarding cores=1 - nb forwarding ports=10 @@ -100,8 +132,7 @@
> Enable the receipt of VLAN packets with VLAN Tag Identifier 1 on port 0::
>  Configure the traffic generator to send VLAN packets with the Tag Identifier
>   ``1`` and send 1 packet on port ``A``.
> 
> -Verify that the VLAN packet was correctly received on port ``B`` with VLAN
> tag ``1``.
> -
> +Verify that the VLAN packet was correctly received on port ``B`` without
> VLAN tag ``1``.
> 
>  Test Case: Disable receipt of VLAN packets
> ==========================================
> --
> 2.14.3


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

* [dts] [PATCH] test_plans: add a test case to test plan
@ 2019-06-26  9:40 Peng Yuan
  2019-07-10  6:32 ` Tu, Lijuan
  0 siblings, 1 reply; 3+ messages in thread
From: Peng Yuan @ 2019-06-26  9:40 UTC (permalink / raw)
  To: dts; +Cc: Peng Yuan

Add a test case to vlan_test_plan.rst

Signed-off-by: Peng Yuan <yuan.peng@intel.com>

diff --git a/test_plans/vlan_test_plan.rst b/test_plans/vlan_test_plan.rst
index 54df0b6..a5058f8 100644
--- a/test_plans/vlan_test_plan.rst
+++ b/test_plans/vlan_test_plan.rst
@@ -76,7 +76,38 @@ The -n command is used to select the number of memory channels. It should match
 Set the verbose level to 1 to display information for each received packet::
 
   testpmd> set verbose 1
+  testpmd> vlan set filter on
 
+Test Case: Enable receipt of VLAN packets and disable VLAN header stripping
+===========================================================================
+
+Setup the ``mac`` forwarding mode::
+
+  testpmd> set fwd mac
+  Set mac packet forwarding mode
+
+Enable the receipt of VLAN packets with VLAN Tag Identifier 1 on port 0::
+
+  testpmd> rx_vlan add 1 0
+  testpmd> vlan set strip off 0
+  testpmd> start
+    rxonly packet forwarding - CRC stripping disabled - packets/burst=32
+    nb forwarding cores=1 - nb forwarding ports=10
+    RX queues=1 - RX desc=128 - RX free threshold=64
+    RX threshold registers: pthresh=8 hthresh=8 wthresh=4
+    TX queues=1 - TX desc=512 - TX free threshold=0
+    TX threshold registers: pthresh=32 hthresh=8 wthresh=8
+
+Configure the traffic generator to send VLAN packets with the Tag Identifier
+ ``1`` and send 1 packet on port ``A``.
+
+Verify that the VLAN packet was correctly received on port ``B`` with VLAN tag ``1``.
+
+Configure the traffic generator to send VLAN packets with not matched Tag
+Identifier and send 1 packet on port ``A``.
+
+Verify that the VLAN packet was not correctly received on port ``B`` with
+this not matched VLAN Tag.
 
 Test Case: Enable receipt of VLAN packets and VLAN header stripping
 ===================================================================
@@ -89,6 +120,7 @@ Setup the ``mac`` forwarding mode::
 Enable the receipt of VLAN packets with VLAN Tag Identifier 1 on port 0::
 
   testpmd> rx_vlan add 1 0
+  testpmd> vlan set strip on 0
   testpmd> start
     rxonly packet forwarding - CRC stripping disabled - packets/burst=32
     nb forwarding cores=1 - nb forwarding ports=10
@@ -100,8 +132,7 @@ Enable the receipt of VLAN packets with VLAN Tag Identifier 1 on port 0::
 Configure the traffic generator to send VLAN packets with the Tag Identifier
  ``1`` and send 1 packet on port ``A``.
 
-Verify that the VLAN packet was correctly received on port ``B`` with VLAN tag ``1``.
-
+Verify that the VLAN packet was correctly received on port ``B`` without VLAN tag ``1``.
 
 Test Case: Disable receipt of VLAN packets
 ==========================================
-- 
2.14.3


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

end of thread, other threads:[~2019-07-10  6:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-26  9:35 [dts] [PATCH] test_plans: add a test case to test plan zhuwenhui
2019-06-26  9:40 Peng Yuan
2019-07-10  6:32 ` 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).