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 6F1FE42CD4 for ; Fri, 16 Jun 2023 04:48:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6102B41101; Fri, 16 Jun 2023 04:48:56 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 65A374021E; Fri, 16 Jun 2023 04:48:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686883733; x=1718419733; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=1fUUdb9PefIig+2dGUa9uQR7lgv7rMlixhYPwwXxT7U=; b=cjfNCVWRf+br+7pENkOnMgatqR5SQ6fOQ/hKO/30sXg7JtSah7Tq/VUO UB/Tz0JVoq0M/yXVxOhuynyIalwTegs6qCyfr13c/4tDKJyIS2TxBRAYu HQYH2WuxSY2fsz0MOXrf7y+2nKBUP9ZKRZc5yi2bVXd35hRXeGZDwDjUS DpFgZD+neqnVuHUrHU/G81+R21yMdS5tOhz56Yw7rYhvpHqyzOzeIfa5i PTygpcfyXFV/q69grP2WHKc42ivw6ZMlrroX8g1iy3xxRiuH+S47JbyHE FAVjhMEWXfNTtnwtgQBEy5G7TXs9qUHUIgG/A+RsOnqdxdNhojlifBbg2 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="445479778" X-IronPort-AV: E=Sophos;i="6.00,246,1681196400"; d="scan'208";a="445479778" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 19:48:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="777979903" X-IronPort-AV: E=Sophos;i="6.00,246,1681196400"; d="scan'208";a="777979903" Received: from shwdenpg561.ccr.corp.intel.com (HELO dpdk..) ([10.239.252.3]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 19:48:50 -0700 From: Kaiwen Deng To: dev@dpdk.org Cc: stable@dpdk.org, qiming.yang@intel.com, yidingx.zhou@intel.com, Kaiwen Deng , Qi Zhang , Anirudh Venkataramanan Subject: [PATCH] net/ice: fix the mac type of E822 and E823 Date: Fri, 16 Jun 2023 10:05:31 +0800 Message-Id: <20230616020531.549016-1-kaiwenx.deng@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 E822 and E823 get the wrong mac type, which prevents the ddp package from loading correctly. This commit fixes the mac type of E822 and E823. Fixes: 084e64e6b600 ("net/ice/base: set MAC type for E823C device") Cc: stable@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/ice/base/ice_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index 0f26f1d854..8867279c28 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -167,6 +167,8 @@ static enum ice_status ice_set_mac_type(struct ice_hw *hw) case ICE_DEV_ID_E823C_QSFP: case ICE_DEV_ID_E823C_SFP: case ICE_DEV_ID_E823C_SGMII: + hw->mac_type = ICE_MAC_GENERIC; + break; case ICE_DEV_ID_E824S: case ICE_DEV_ID_E825C_BACKPLANE: case ICE_DEV_ID_E825C_QSFP: -- 2.34.1