From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F2A42A046B for ; Tue, 23 Jul 2019 08:05:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DD7701BF82; Tue, 23 Jul 2019 08:05:48 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 97EAB1BD52 for ; Tue, 23 Jul 2019 08:05:47 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jul 2019 23:05:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,297,1559545200"; d="scan'208";a="253132177" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 22 Jul 2019 23:05:45 -0700 From: Peng Yuan To: dts@dpdk.org Cc: Peng Yuan Date: Tue, 23 Jul 2019 14:10:24 +0800 Message-Id: <1563862224-40917-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 TestSuite_vlan.py 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 "Enable receipt of VLAN packets and disable VLAN header stripping" to TestSuite_vlan.py Signed-off-by: Peng Yuan 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