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 6A19BA046B for ; Wed, 26 Jun 2019 11:35:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 25EDB1E20; Wed, 26 Jun 2019 11:35:51 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id D2CE4271 for ; Wed, 26 Jun 2019 11:35:49 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2019 02:35:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,419,1557212400"; d="scan'208";a="188595041" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 26 Jun 2019 02:35:47 -0700 From: Peng Yuan To: dts@dpdk.org Cc: Peng Yuan Date: Wed, 26 Jun 2019 17:40:28 +0800 Message-Id: <1561542028-73093-1-git-send-email-yuan.peng@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" 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