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 B5A7E4584B; Thu, 22 Aug 2024 21:49:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8E46542FF1; Thu, 22 Aug 2024 21:48:40 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by mails.dpdk.org (Postfix) with ESMTP id 277A442FED for ; Thu, 22 Aug 2024 21:48:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724356119; x=1755892119; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OEBSRi/QEAHAjNlZX4dHQZ1ECZhcpRoNB4IVrOwJGgI=; b=Bf7FYoM4kxyVour8OYmRKr+roWlCDoYqsnAHpNTVKYi0anUkii0FSOi9 5CI+pBsRhO0nNF/nNikFo6Hwoug8Gf9JFsJWR2TB0AdWGnWPjfBBo/WJy ok/SJ/zQZOW7TH7VhaLt1bK2KcxtzrRxAd+nWgMqSUEv9qLnB+FLrOcyY RyKzgq4juvnPlkhg8BveQMdry5ThYCGCQ2nxTCOwKwt+0hKI1Z8EjEVz1 vGUyxFsutuJfR7tJcAi90/RG6oupFHad4jCryORxDTFm7Towx0Ia5Bd7v JyR7c0ZwEMPxLQyaL5ZEopk//aMVaR99HxdrvmJWNgWWWASzxmPGJ9bBP A==; X-CSE-ConnectionGUID: 02i/0WyRRdC0wC8N8bmZgQ== X-CSE-MsgGUID: EQ0MIkPmTXiQmHIG0YK6gw== X-IronPort-AV: E=McAfee;i="6700,10204,11172"; a="22979712" X-IronPort-AV: E=Sophos;i="6.10,168,1719903600"; d="scan'208";a="22979712" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2024 12:48:39 -0700 X-CSE-ConnectionGUID: jBax5sB3Q0aSg+sl/nU5sw== X-CSE-MsgGUID: TiEaxXtXROCPIXYop8GiYg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,168,1719903600"; d="scan'208";a="92301497" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by orviesa002.jf.intel.com with ESMTP; 22 Aug 2024 12:48:37 -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 v2 12/12] net/ice: add support for FEC auto-detect for E830 Date: Thu, 22 Aug 2024 18:53:46 +0000 Message-ID: <20240822185346.221885-13-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240822185346.221885-1-soumyadeep.hore@intel.com> References: <20240822095612.216214-1-soumyadeep.hore@intel.com> <20240822185346.221885-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 E830 model. With this change, the function will enable FEC auto-detect support for E830 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