From patchwork Mon Sep 5 09:42:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 115885 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BCBF3A034C; Mon, 5 Sep 2022 11:42:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B6AA040697; Mon, 5 Sep 2022 11:42:44 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 19341400D4 for ; Mon, 5 Sep 2022 11:42:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662370961; x=1693906961; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QsNN9sfjkUX1i5IqFJjrWRuWVGArpG70xmSIiXUUAfo=; b=MGIQYXGUFi+DEVlYoMQnApv8PcrDFHfDT3YZtE4nugER1PtCC0fHWUwO YC3nlIGJU9Xg2otb060ZbDfF8s+YvGCdIWj/ZVJvqTyMuUC8a187cSBI1 JT6e9Zel+5Sa+oY/S8OYS4HlroZrh2A39mzoGWK9G8zmQ1npBr0x7IhOJ bhyg16x5D2382mTKGNejbh0eAkPXPgLwRsUg6tnGydAO4QGhFSXdkZZOY lp8vwcOE/OL2DlxVXvfvs897RDFm2Yj5jDQPSH8D337bMIalzhHguK3sG 2HZ5b5/BdABIK8kO9R6jUyDW/B4xMgpZZpyOISYZTu2mvxozAOTDpC16j w==; X-IronPort-AV: E=McAfee;i="6500,9779,10460"; a="358067126" X-IronPort-AV: E=Sophos;i="5.93,290,1654585200"; d="scan'208";a="358067126" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2022 02:42:40 -0700 X-IronPort-AV: E=Sophos;i="5.93,290,1654585200"; d="scan'208";a="675219052" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2022 02:42:39 -0700 From: Weiyuan Li To: dts@dpdk.org, qi.fu@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 2/2] test_plans/dual_vlan: optimize dual_vlan test plan Date: Mon, 5 Sep 2022 17:42:51 +0800 Message-Id: <20220905094251.16568-2-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220905094251.16568-1-weiyuanx.li@intel.com> References: <20220905094251.16568-1-weiyuanx.li@intel.com> MIME-Version: 1.0 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 Add diable/enable "extend off" "strip off" in test plan. Signed-off-by: Weiyuan Li --- test_plans/dual_vlan_test_plan.rst | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/test_plans/dual_vlan_test_plan.rst b/test_plans/dual_vlan_test_plan.rst index 762147f0..ebd68d0a 100644 --- a/test_plans/dual_vlan_test_plan.rst +++ b/test_plans/dual_vlan_test_plan.rst @@ -44,6 +44,10 @@ Enable vlan filtering on port 0:: testpmd> vlan set filter on 0 +Disable extend on port 0:: + + testpmd> vlan set extend off 0 + Check whether the mode is set successful:: testpmd> show port info 0 @@ -103,6 +107,11 @@ Configure the traffic generator to send VLAN packets with the Tag Identifier Test Case: Add/Remove VLAN Tag Identifier pass VLAN filtering ============================================================= +Disable VLAN packet extend and strip port ``0``:: + + testpmd> vlan set extend off 0 + testpmd> vlan set strip off 0 + Enable VLAN filtering on port ``0``:: testpmd> vlan set filter on 0 @@ -240,12 +249,12 @@ and send 1 packet on port ``A``. Verify that the packet can been received on por ``B`` without VLAN Tag Identifier. -Test Case: Configure receive port outer VLAN TPID +Test Case: Configure receive port inner VLAN TPID ================================================= -Enable vlan header QinQ on port ``0`` firstly to support set TPID:: +Enable VLAN packet extend on port ``0``:: - testpmd> vlan set qinq on 0 + testpmd> vlan set extend on 0 Check whether the mode is set successfully:: @@ -260,9 +269,7 @@ Check whether the mode is set successfully:: Allmulticast mode: disabled Maximum number of MAC addresses: 127 VLAN offload: - strip off - filter off - qinq(extend) on + strip off, filter off, extend on, qinq strip off Set Tag Protocol ID ``0x1234`` on port ``0``. Nic only support inner model, except IntelĀ® Ethernet 700 Series::