From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 7379EA046B for ; Wed, 26 Jun 2019 11:30:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3213A1E20; Wed, 26 Jun 2019 11:30:31 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 9B4D81D7 for ; Wed, 26 Jun 2019 11:30:29 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2019 02:30:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,419,1557212400"; d="scan'208";a="172667963" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 26 Jun 2019 02:30:26 -0700 From: zhuwenhui To: dts@dpdk.org Cc: Peng Yuan Date: Wed, 26 Jun 2019 17:35:09 +0800 Message-Id: <1561541709-72821-1-git-send-email-wenhuix.zhu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH] test_plans: add a test case to test plan X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: Peng Yuan Add a test case to vlan_test_plan.rst Signed-off-by: Peng Yuan 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