From patchwork Thu Sep 8 05:53:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 116076 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 5B2ECA0548; Thu, 8 Sep 2022 07:53:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DE62B42B7C; Thu, 8 Sep 2022 07:53:38 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id A07B342B7B for ; Thu, 8 Sep 2022 07:53:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662616416; x=1694152416; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ei9XsYyB31hHyiHFrJSfx8YH3OfXSDvc4ucMTbIISgA=; b=ZmmhQMRpqKuYUlYiSUGKOZtHpWEEpsBEUu5W4MfhT7Na2rQc+UqUCHfT yUMKzQVuHq8Jfgi7QNkHFYxLamD4yGopQmHnpRX/wqWPoV6FdtrknykqT gahvYT3U6ok2OW0tPoCly0rnqqcDmsGbhBgS4PgSBEMvW6if1iKtTmbId X6VmutSxOtvM20yx25OxtWBjrThetNaeWqs8CP8WIHQBKEvvJ5f7LKobp h66NT3aJTg3hhU4SNydPBIOUgMXNGtDzvwtXhlva7xDDJgrtGYLR6mi69 a+Yb6aI0DaEwh13otH7eH1XLGPxpndu61MNn7haNdkEP9daIDC5xjmnZa A==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="295809968" X-IronPort-AV: E=Sophos;i="5.93,299,1654585200"; d="scan'208";a="295809968" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 22:53:35 -0700 X-IronPort-AV: E=Sophos;i="5.93,299,1654585200"; d="scan'208";a="644931804" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 22:53:34 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V2 1/2] tests/dual_vlan: optimize script case vlan_tpid_config add check tpid Date: Thu, 8 Sep 2022 13:53:47 +0800 Message-Id: <20220908055348.32751-1-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 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 Optimize script case vlan_tpid_config add check tpid. Signed-off-by: Weiyuan Li Acked-by: Fu, Qi --- v2: -Patch conflict modification tests/TestSuite_dual_vlan.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_dual_vlan.py b/tests/TestSuite_dual_vlan.py index 15d6f2b2..87c5325b 100644 --- a/tests/TestSuite_dual_vlan.py +++ b/tests/TestSuite_dual_vlan.py @@ -502,7 +502,7 @@ class TestDualVlan(TestCase): def test_vlan_tpid_config(self): """ - Configure receive port out vlan TPID + Configure receive port inner VLAN TPID """ self.verify( self.nic @@ -524,6 +524,7 @@ class TestDualVlan(TestCase): self.vlan_send_packet(outvlan, invlan) out = self.get_tcpdump_package() + self.verify("0x8100" in out, "tpid is error: " + out) self.verify("vlan %s" % outvlan in out, "vlan tpid disable error: " + out) self.verify("vlan %s" % invlan in out, "vlan tpid disable error: " + out) @@ -531,6 +532,7 @@ class TestDualVlan(TestCase): self.vlan_send_packet(outvlan, invlan) out = self.get_tcpdump_package() + self.verify("0x8100" in out, "tpid is error: " + out) self.verify( out is not None and "vlan" not in out, "vlane tpid enable error: " + out ) From patchwork Thu Sep 8 05:53:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 116077 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 739CBA054A; Thu, 8 Sep 2022 07:53:40 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 07CB742B81; Thu, 8 Sep 2022 07:53:39 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 4B79542905 for ; Thu, 8 Sep 2022 07:53:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662616417; x=1694152417; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fteZMcO0A6njAkS+UHFJpdao94b37X1zh1yTTyRTDXk=; b=fR7TN+xss1hLPx+f3E1P0k15uO+Ml921b2RcwLI9NR+lJvY886FMyjjb fYQhzYpLr9PQfi3mMq8+jW6anEoJMdwrWPS9XYe9cNm69KhKjrrRhUAb0 HFZ+8OcDdn8DorxcOzPmHdf2BbtVtsJF7VXD9j/NJ6UUrbwn407NJKRcM aLMmhLxdW2PrRa+MJnyurcsQEZPxbl2h7QbfF35/RPSd51qEnRmMuU+Jp AIb+PDycbG1/iraAPdPM/+FVyGMrkYPpSBrN6CH+MB4eHwbLoFrQvJ/N6 gkAMbox1utk7z4+WCBclsS08X31xuDjVFlRjU3wPMcUpuKP9gPMwrimod w==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="295809975" X-IronPort-AV: E=Sophos;i="5.93,299,1654585200"; d="scan'208";a="295809975" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 22:53:36 -0700 X-IronPort-AV: E=Sophos;i="5.93,299,1654585200"; d="scan'208";a="644931815" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 22:53:35 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V2 2/2] test_plans/dual_vlan: optimize dual_vlan test plan Date: Thu, 8 Sep 2022 13:53:48 +0800 Message-Id: <20220908055348.32751-2-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220908055348.32751-1-weiyuanx.li@intel.com> References: <20220908055348.32751-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 Acked-by: Fu, Qi Acked-by: Lijuan Tu --- v2: -Patch conflict modification test_plans/dual_vlan_test_plan.rst | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test_plans/dual_vlan_test_plan.rst b/test_plans/dual_vlan_test_plan.rst index 985394a2..752b5025 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,7 +249,7 @@ 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::