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 18F6CA057F; Tue, 22 Nov 2022 08:09:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 145D642D4F; Tue, 22 Nov 2022 08:09:45 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id C093842D43 for ; Tue, 22 Nov 2022 08:09:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669100984; x=1700636984; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=D0znbAlm20D3gB4X871dUBftKhHdmIVf++jXwpaQHNk=; b=MwcgxpT4DR/9hs0fYFJPayQXcnDXV1t1rfcpaVLaKVpa3A2dRqQsp3po hf1Y+G81BPDi1ka8XnWRMzfF9Fvv2PrrdqlamD1WIwPndZygKlIDB3Iu4 1M1eGtVLymxvkTtNsl51+YLmURdGV09QeEEAOIaZJjfGYn3fTKXH6qSgU x+ZQImlC0CNIEgDX99URS10vSVb39+hJEavXgSKIPcioAwSpKFvhP8X0B c7yRTtfTI0kigQeH0Xjz4eetXoo8/Xkh/Dp0P96sKD4VGeoTI7j9E5cYo lGTfESwFeary0tW4iYsi/9qBe6Cf5auJ8WahvHrJ3N4+dQOiDpXReYD/L Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="314899811" X-IronPort-AV: E=Sophos;i="5.96,183,1665471600"; d="scan'208";a="314899811" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 23:09:43 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="730296323" X-IronPort-AV: E=Sophos;i="5.96,183,1665471600"; d="scan'208";a="730296323" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 23:09:41 -0800 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li , Song Jiale Subject: [dts][PATCH V4 4/8] tests/ipgre: modify script and test plan to support i40e fimware >= 8.4 Date: Tue, 22 Nov 2022 15:09:23 +0800 Message-Id: <20221122070927.7634-4-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20221122070927.7634-1-weiyuanx.li@intel.com> References: <20221122070927.7634-1-weiyuanx.li@intel.com> MIME-Version: 1.0 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 Modify script and test plan to i40e support fimware >= 8.4. When the fimrware >= 8.4, if the filter is to take effect need to enable extend. Signed-off-by: Weiyuan Li --- Tested-by: Song Jiale v2: -use the firmware version to judge whether to add command `extend on`. v3: -modify description. v4: -modify comments. -dual_vlan test plan modify table and add header. tests/TestSuite_ipgre.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/TestSuite_ipgre.py b/tests/TestSuite_ipgre.py index cd50c1c4..ecd8e19c 100644 --- a/tests/TestSuite_ipgre.py +++ b/tests/TestSuite_ipgre.py @@ -309,9 +309,22 @@ class TestIpgre(TestCase): socket=self.ports_socket, ) + # Get the firmware version information + try: + fwversion, _, _ = self.pmdout.get_firmware_version( + self.dut_ports[0] + ).split() + except ValueError: + # nic IXGBE, IGC + fwversion = self.pmdout.get_firmware_version(self.dut_ports[0]).split() + self.dut.send_expect("set fwd rxonly", "testpmd>") self.dut.send_expect("set verbose 1", "testpmd>") self.dut.send_expect("start", "testpmd>") + # Because the kernel forces enable Qinq and cannot be closed, + # the dpdk can only add 'extend on' to make the VLAN filter work normally. + if self.kdriver == "i40e" and fwversion >= "8.40": + self.dut.send_expect("vlan set extend off 0", "testpmd>") # inner ipv4 config_layers = { -- 2.27.0