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 C914145849; Fri, 23 Aug 2024 12:52:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C812643367; Fri, 23 Aug 2024 12:51:48 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by mails.dpdk.org (Postfix) with ESMTP id DB94C43364 for ; Fri, 23 Aug 2024 12:51:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724410307; x=1755946307; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=iB9+NnhnNQEYoaQIzvAVM5+Tq2UV2a8ZWuGK+cRKgPg=; b=YjmH0+8Y3CLPhCUpQVUh2nlh4Xpid9CpY1OEazaI+iI6+psni7CjCKq1 6TPIjiDOmedHyO0gLgAPVYrjz2EFlem3gCROKDxm8iV/rVR7byCEWjDEp TfJdeELZV+LkJSdJplfX2LPjOSTOpYJ5n8JN2wJApcvovxzSy90u9BSsr JaKg1JE/hVOow5D5skf3PGxnVGbIk2/Wrl+xOdgAABNItJvEeSFywOoC8 gFaJNptUGAveWXqf+QZsGR9gkTTWBW7u7mgUSmxobhobkBh664a5/kU4C 20v7/moEVVD5DVc0JpF950f/xsaHSaI/LCuxzqDdIcVVMqxlCfn3gcm0e g==; X-CSE-ConnectionGUID: tWnjnSraRx26KDCHQXHnVw== X-CSE-MsgGUID: XdJFUIQWQh6CDyhjPKittQ== X-IronPort-AV: E=McAfee;i="6700,10204,11172"; a="33535669" X-IronPort-AV: E=Sophos;i="6.10,170,1719903600"; d="scan'208";a="33535669" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2024 03:51:46 -0700 X-CSE-ConnectionGUID: 5K+zG/xoRZGDqRb0xzKgCg== X-CSE-MsgGUID: bVmWkDwtQNm0/s3lgmQGHA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,170,1719903600"; d="scan'208";a="61617774" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by orviesa010.jf.intel.com with ESMTP; 23 Aug 2024 03:51:44 -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, Przemyslaw Gierszynski Subject: [PATCH v3 12/12] net/ice: add support for FEC auto-detect for E830 Date: Fri, 23 Aug 2024 09:56:50 +0000 Message-ID: <20240823095650.349785-13-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240823095650.349785-1-soumyadeep.hore@intel.com> References: <20240822185346.221885-13-soumyadeep.hore@intel.com> <20240823095650.349785-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 From: Przemyslaw Gierszynski 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: Przemyslaw Gierszynski 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