From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Peng, Yuan" <yuan.peng@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Peng, Yuan" <yuan.peng@intel.com>
Subject: Re: [dts] [PATCH]test_plans: add a test case to TestSuite_vlan.py
Date: Thu, 8 Aug 2019 04:46:35 +0000 [thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAFF428@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1563862224-40917-1-git-send-email-yuan.peng@intel.com>
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan
> Sent: Tuesday, July 23, 2019 2:10 PM
> To: dts@dpdk.org
> Cc: Peng, Yuan <yuan.peng@intel.com>
> Subject: [dts] [PATCH]test_plans: add a test case to TestSuite_vlan.py
>
> add "Enable receipt of VLAN packets and disable VLAN header stripping" to
> TestSuite_vlan.py
>
> 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 beaab9b..a5058f8 100644
> --- a/test_plans/vlan_test_plan.rst
> +++ b/test_plans/vlan_test_plan.rst
> @@ -76,10 +76,10 @@ 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 VLAN header stripping -
> ================================================================
> ===
> +Test Case: Enable receipt of VLAN packets and disable VLAN header
> +stripping
> +===============================================================
> ========
> +====
>
> Setup the ``mac`` forwarding mode::
>
> @@ -89,6 +89,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 off 0
> testpmd> start
> rxonly packet forwarding - CRC stripping disabled - packets/burst=32
> nb forwarding cores=1 - nb forwarding ports=10 @@ -108,6 +109,31 @@
> 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
> +===============================================================
> ====
> +
> +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 on 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`` without
> VLAN tag ``1``.
> +
> Test Case: Disable receipt of VLAN packets
> ==========================================
>
> --
> 2.14.3
prev parent reply other threads:[~2019-08-08 4:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-23 6:10 Peng Yuan
2019-08-08 4:46 ` Tu, Lijuan [this message]
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=8CE3E05A3F976642AAB0F4675D0AD20E0BAFF428@SHSMSX101.ccr.corp.intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=yuan.peng@intel.com \
/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).