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 05818A04FD; Thu, 10 Nov 2022 06:29:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0104641181; Thu, 10 Nov 2022 06:29:42 +0100 (CET) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id E120541181 for ; Thu, 10 Nov 2022 06:29:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668058181; x=1699594181; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CzrS1PvE0mq8pmSyC+qP4ZE5FUBHAK0h6dAbhu7daag=; b=fea47zDOUzztIkw91vBhKRbxLukEeBhXe3pCivXafDL97o0031Ppj8x0 AE7+pL669aPIQKKfcz2XC7xgOo2c6+9dTSMlURuUtM3i4rZAr5ttG5ytX /1Bo3NHDz6T15hLtf2iJuxKzuSWktlMKeOQaKiBHkoGhb8QvLRzDVUBxB MA5eSAAMNmdN1/7r4Wby6IYtXalIem+U+QydwApgj7Qw+Yt9p0s98su/E bWGnw6xmyGbxlkmJ+kE0vqxI2NsFldnz1zpcqruwCjv9BgOX0FfK1+c8l C+SdUHOP9vlmDNGaaeKcLu7UPW8tvAaoW7cdqJGdJW3P3tdR8HUHKagVz w==; X-IronPort-AV: E=McAfee;i="6500,9779,10526"; a="373332619" X-IronPort-AV: E=Sophos;i="5.96,152,1665471600"; d="scan'208";a="373332619" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2022 21:29:40 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10526"; a="637037040" X-IronPort-AV: E=Sophos;i="5.96,152,1665471600"; d="scan'208";a="637037040" Received: from unknown (HELO dpdk-VF-dut247..) ([10.239.252.247]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2022 21:29:39 -0800 From: Weiyuan Li To: dts@dpdk.org, lijuan.tu@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V2 6/8] tests/ipgre: modify script and test plan to support i40e fimware > 8.3 Date: Thu, 10 Nov 2022 13:33:56 +0800 Message-Id: <20221110053358.437591-6-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221110053358.437591-1-weiyuanx.li@intel.com> References: <20221110053358.437591-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.3. When the fimrware > 8.3, if the filter is to take effect need to enable extend. Signed-off-by: Weiyuan Li --- v2: -use the firmware version to judge whether to add command `extend on`. tests/TestSuite_ipgre.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/TestSuite_ipgre.py b/tests/TestSuite_ipgre.py index cd50c1c4..c9371678 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 single 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