From patchwork Fri Oct 7 11:53:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 117554 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 68398A04FD; Fri, 7 Oct 2022 13:53:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2252F42B85; Fri, 7 Oct 2022 13:53:18 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id D180A42B80 for ; Fri, 7 Oct 2022 13:53:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665143597; x=1696679597; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+h65yLhisMJ3TKc+gFFBCsQiE3agOPbI9VOxV3n0lOE=; b=NQa9AtXy2l6xyTbiqI+l/cdQPK6NG1r554Sc8b0aA+JjtV8xVfwbgjDl +4sgAPueNl4b9dfgglN+GNtuu3VnOEVuvUYvar7sw8+w2Uy0rmtF26i1i 4gqhsaGSZRTJ3DBHybTeuGSA7hUNBd0geQ5CyQiesxPy/QxSx0ws2g6au 1u8agiHYbwt/X8qiXnFtH53/6EUw7jWc+0TyxFQTKr0halJ2suMrpavtQ 4vdr64RyiFmhPJwGGO22p0haE00aatv2p2y3zFkL3m3dEKJsczaWehj5c mDRhlmrJlyHEqTZ+c3nDblLiT9oN96htdZXh8W5jNcC/YeiGkT+SEPC16 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="304716872" X-IronPort-AV: E=Sophos;i="5.95,166,1661842800"; d="scan'208";a="304716872" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2022 04:53:16 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="714249984" X-IronPort-AV: E=Sophos;i="5.95,166,1661842800"; d="scan'208";a="714249984" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2022 04:53:15 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V1 5/8] tests/vlan_ethertype_config: modify script and test plan to support i40e fimware > 8.3 Date: Fri, 7 Oct 2022 19:53:30 +0800 Message-Id: <20221007115333.29277-5-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221007115333.29277-1-weiyuanx.li@intel.com> References: <20221007115333.29277-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 Modify script and test plan to i40e support fimware > 8.3. When the fimrware > 8.3, if the filter is to take effect need to enable extend. Signed-off-by: Weiyuan Li --- tests/TestSuite_vlan_ethertype_config.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_vlan_ethertype_config.py b/tests/TestSuite_vlan_ethertype_config.py index b641d928..1e2b9e24 100644 --- a/tests/TestSuite_vlan_ethertype_config.py +++ b/tests/TestSuite_vlan_ethertype_config.py @@ -194,6 +194,13 @@ class TestVlanEthertypeConfig(TestCase): self.dut.send_expect( "vlan set filter on %s" % dutRxPortId, "testpmd> " ) + if self.kdriver == "i40e" and self.nic not in [ + "I40E_10G-10G_BASE_T_X722", + "I40E_10G-SFP_X722", + ]: + self.dut.send_expect( + "vlan set extend on %s" % dutRxPortId, "testpmd> " + ) self.dut.send_expect("start", "testpmd> ") self.check_vlan_packets(rx_vlan, tpid, self.rxItf, False) # test vlan filter off @@ -209,8 +216,13 @@ class TestVlanEthertypeConfig(TestCase): random_vlan = random.randint(1, MAX_VLAN - 1) rx_vlans = [1, random_vlan, MAX_VLAN] self.dut.send_expect("set fwd mac", "testpmd> ") - self.dut.send_expect("vlan set filter on %s" % dutRxPortId, "testpmd> ") + self.dut.send_expect("vlan set filter on %s" % dutRxPortId, "testpmd> ") self.dut.send_expect("vlan set strip off %s" % dutRxPortId, "testpmd> ", 20) + if self.kdriver == "i40e" and self.nic not in [ + "I40E_10G-10G_BASE_T_X722", + "I40E_10G-SFP_X722", + ]: + self.dut.send_expect("vlan set extend on %s" % dutRxPortId, "testpmd> ") self.dut.send_expect("start", "testpmd> ") # caium_a063 card support only default '0x8100' tpid in rx mode