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 84340A034F for ; Thu, 24 Jun 2021 10:41:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 558404003C; Thu, 24 Jun 2021 10:41:59 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id EF4CA4003C for ; Thu, 24 Jun 2021 10:41:57 +0200 (CEST) IronPort-SDR: fGoARlDrPBBWi0x9uFrzzloYB0jHQwQMK9S9V6rGUr2nWlwWikGGXOetNpoiR/Hkuzy1lwmgWP miwYyBtEfDGQ== X-IronPort-AV: E=McAfee;i="6200,9189,10024"; a="207468717" X-IronPort-AV: E=Sophos;i="5.83,296,1616482800"; d="scan'208";a="207468717" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2021 01:41:56 -0700 IronPort-SDR: OPcJW/GIUURS1S46GAU//59PEPmPOoF5hvPXjLV2bJYZBDtauO+vQJqbWmTO7KKKSEquyvlrtf j4NMErfY3cgw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,296,1616482800"; d="scan'208";a="487677693" Received: from dpdk-beileix-3.sh.intel.com ([10.67.110.182]) by orsmga001.jf.intel.com with ESMTP; 24 Jun 2021 01:41:54 -0700 From: beilei.xing@intel.com To: stable@dpdk.org Cc: tao.y.yang@intel.com, Beilei Xing , Zhike Wang Date: Thu, 24 Jun 2021 16:29:01 +0800 Message-Id: <20210624082901.50689-1-beilei.xing@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH] net/i40e: fix X722 for 802.1ad frames ability X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" From: Beilei Xing X722 does not support 802.1ad frames ability. Fixes: 9efa8d28b4da ("net/i40e: fix SFP X722 with FW4.16") Cc: stable@dpdk.org Signed-off-by: Zhike Wang Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index d825ef7296..a878e86b4c 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -1480,9 +1480,8 @@ eth_i40e_dev_init(struct rte_eth_dev *dev, void *init_params __rte_unused) PMD_INIT_LOG(ERR, "Failed to init adminq: %d", ret); return -EIO; } - /* Firmware of SFP x722 does not support 802.1ad frames ability */ - if (hw->device_id == I40E_DEV_ID_SFP_X722 || - hw->device_id == I40E_DEV_ID_SFP_I_X722) + /* X722 does not support 802.1ad frames ability */ + if (hw->mac.type == I40E_MAC_X722) hw->flags &= ~I40E_HW_FLAG_802_1AD_CAPABLE; PMD_INIT_LOG(INFO, "FW %d.%d API %d.%d NVM %02d.%02d.%02d eetrack %04x", -- 2.26.2