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 0917845845; Thu, 22 Aug 2024 12:52:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8606042EE6; Thu, 22 Aug 2024 12:51:12 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by mails.dpdk.org (Postfix) with ESMTP id DF7D442EF3 for ; Thu, 22 Aug 2024 12:51:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724323871; x=1755859871; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Mx9j/+kddNzIwLPnbHJYVf8nOoGWDPPn9++cbm7QrDg=; b=NporAfZeq9xCFiF2Cc3FIYyPIbSC68mmZK+M4AWdvaAbf+PdadF9nG3m veHgIcNz5IOivwO+7jUPC7ZB5vWQ6zQAHHnFpBJWsxcxJ3C9rIJwK2Rj4 MR/7w437Nn0SiyRKo6zyAciVHtOKezcnPImcsqBc0WoAIfZu+4GglOhR+ NbEVkW9yQJx7a8Xz/S3HcGaBE/zHAzp6JwwCp/1Oyu9YfgkK6uPXrkteK o7nF2xF9myBZEHFoNh5KVRK/DPf4IK7YCsgUnA6S6yP4U6yD7z0ivvI5P ciz1EO35GU7XFPJXuZVAa7VLSKISnmi0kBPuX59VaUN6nuMM7YU3VFUOv Q==; X-CSE-ConnectionGUID: IljyNtzASi2wOrZ8O+426A== X-CSE-MsgGUID: vJIPLvD/Qrm9vlZXoeBGpg== X-IronPort-AV: E=McAfee;i="6700,10204,11171"; a="22542325" X-IronPort-AV: E=Sophos;i="6.10,166,1719903600"; d="scan'208";a="22542325" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2024 03:51:10 -0700 X-CSE-ConnectionGUID: P/syXVDiSUuIbKtFW68kFg== X-CSE-MsgGUID: 4mY0Hr02SGmOvIHipYLfgQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,166,1719903600"; d="scan'208";a="61559767" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by fmviesa010.fm.intel.com with ESMTP; 22 Aug 2024 03:51:08 -0700 From: Soumyadeep Hore To: bruce.richardson@intel.com, ian.stokes@intel.com, aman.deep.singh@intel.com Cc: dev@dpdk.org, shaiq.wani@intel.com Subject: [PATCH v1 12/12] net/ice: add support for FEC auto-detect for Connorsville Date: Thu, 22 Aug 2024 09:56:12 +0000 Message-ID: <20240822095612.216214-13-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240822095612.216214-1-soumyadeep.hore@intel.com> References: <20240822095612.216214-1-soumyadeep.hore@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Extends the functionality of the function responsible for checking if the firmware supports FEC (Forward Error Correction) disable in Auto FEC mode. It now includes an additional check to determine if the adapter is a Connorsville model. With this change, the function will enable FEC auto-detect support for Connorsville adapters. Signed-off-by: Soumyadeep Hore --- 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 08ba0b45a5..c8047ca59f 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -6456,6 +6456,8 @@ u32 ice_get_link_speed(u16 index) */ bool ice_fw_supports_fec_dis_auto(struct ice_hw *hw) { + if (ice_is_e830(hw)) + return true; return ice_is_fw_min_ver(hw, ICE_FW_VER_BRANCH_E810, ICE_FW_FEC_DIS_AUTO_MAJ, ICE_FW_FEC_DIS_AUTO_MIN, -- 2.43.0