From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 36967A0542; Wed, 10 Aug 2022 11:47:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 077C74068E; Wed, 10 Aug 2022 11:47:42 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 0EE064067C for ; Wed, 10 Aug 2022 11:47:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660124860; x=1691660860; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=OZ8Ll8aT5CvzJ+dzRsz+gXTlrPPisk4OVN89cpGdzbM=; b=ke/yBj8ZCN5L7Bp8Zq9OAjenIa4buXhvuORWXRdOE4kZo4t3rmqi5C7L Xtv+Qu/EacnzqgdJh20C+7ODZqTgB5YHFeWKyM5xg0adiSyD1NG1u5Aec n9LUBudGyzK0v9JCJvYIi7E5cHGlHlOC0glKzBw4YjtUteM19QpUP5LYC PRB122qq7jFCciL4OQz81jv45/LvXKaxVLR8PyZOlE1axNrHcSF3CaQmh DAqTE1YWXzOp359hXskuh6H9MDKwPH0HLiTE6X2bR3ycuz0udaQC1QNiI BuyvUighoQa1r/DQ0jHxBmQYyDVi0KgHfV0Ct2u8Kb+Jf/PR+6PohSSww Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10434"; a="355045782" X-IronPort-AV: E=Sophos;i="5.93,227,1654585200"; d="scan'208";a="355045782" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2022 02:47:34 -0700 X-IronPort-AV: E=Sophos;i="5.93,227,1654585200"; d="scan'208";a="601758367" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2022 02:47:28 -0700 From: Lingli Chen To: dts@dpdk.org Cc: Lingli Chen Subject: [dts][PATCH V1] tests/dual_vlan: modify case vlan_tpid_config sync with testplan Date: Wed, 10 Aug 2022 05:05:07 -0400 Message-Id: <20220810090507.27306-1-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit 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 1.modify case vlan_tpid_config tpid 0x1234 sync with testplan 2.replace qinq with extend: Change the command according to the modification of dpdk commit 2a0b41984c7 Signed-off-by: Lingli Chen --- test_plans/dual_vlan_test_plan.rst | 6 ++---- tests/TestSuite_dual_vlan.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test_plans/dual_vlan_test_plan.rst b/test_plans/dual_vlan_test_plan.rst index 762147f0..985394a2 100644 --- a/test_plans/dual_vlan_test_plan.rst +++ b/test_plans/dual_vlan_test_plan.rst @@ -245,7 +245,7 @@ Test Case: Configure receive port outer VLAN TPID Enable vlan header QinQ on port ``0`` firstly to support set TPID:: - testpmd> vlan set qinq on 0 + testpmd> vlan set extend on 0 Check whether the mode is set successfully:: @@ -260,9 +260,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:: diff --git a/tests/TestSuite_dual_vlan.py b/tests/TestSuite_dual_vlan.py index 99f47a82..15d6f2b2 100644 --- a/tests/TestSuite_dual_vlan.py +++ b/tests/TestSuite_dual_vlan.py @@ -520,7 +520,7 @@ class TestDualVlan(TestCase): self.mode_config(filter="on", strip="on", extend="on") # nic only support inner model, except IntelĀ® Ethernet 700 Series nic - self.dut.send_expect("vlan set inner tpid 1234 %s" % dutRxPortId, "testpmd> ") + self.dut.send_expect("vlan set inner tpid 0x1234 %s" % dutRxPortId, "testpmd> ") self.vlan_send_packet(outvlan, invlan) out = self.get_tcpdump_package() -- 2.17.1