From patchwork Wed Apr 24 13:21:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatoly Burakov X-Patchwork-Id: 139655 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CE68E43EAD; Wed, 24 Apr 2024 15:23:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CD718434B7; Wed, 24 Apr 2024 15:22:40 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by mails.dpdk.org (Postfix) with ESMTP id C8B94434B9 for ; Wed, 24 Apr 2024 15:22:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713964959; x=1745500959; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yNtyhPlqaKQpxLROs19p+u0RRVqEx/1Vo+G7SwqKUGc=; b=FOzJrDlicOZzzljDmfv9+5YhsGq8yIVPHMZHdoSaLms9/egR8w0eWuSZ tz/Tzn+kUN9ptbcvmq+MIXL85ev1okEMRQnB0CpE6fMPYouEtItMGY2Il 8UK4TB7iRz8oT0UQ8OwcqHudJzkMnLhXnFqovC2vkiz9p1tvM+3v+a58R dvrQEVbKHA0dSGTInt2MO1xEY4PJ0ZZQDOOJW/csOlABQgZTe6swUV+iR BvBB9GpcMkbhMX19B9eH0NvfRb80fpOMdsXn6Qy7RhE2i3hSzYAp/XPXM yi8V9nTj8CswEDgFG5EdFA+l8cBLqNEVW19m9THv35A3hrhNt7HOYpYV4 w==; X-CSE-ConnectionGUID: xPcVVr8jT02vM7qL5Bf1gg== X-CSE-MsgGUID: liCG2Ny0TvGf9WC/k50Oww== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="20289265" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="20289265" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 06:22:38 -0700 X-CSE-ConnectionGUID: xoMK06rVS8eemqqk2FMQeA== X-CSE-MsgGUID: trYjOabsRb6OnOTXR/aUmw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="24749417" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by fmviesa006.fm.intel.com with ESMTP; 24 Apr 2024 06:22:36 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Radoslaw Tyl , vladimir.medvedkin@intel.com, bruce.richardson@intel.com, Skajewski@dpdk.org, PiotrX , Mrozowicz@dpdk.org, SlawomirX , Michael@dpdk.org, Alice Subject: [PATCH v1 10/22] net/ixgbe/base: add fw_rst_cnt field to ixgbe_hw struct Date: Wed, 24 Apr 2024 14:21:44 +0100 Message-ID: <8ea00c51bd6e92b59757fdb861a28ecf5fc5f7cb.1713964708.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 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: Radoslaw Tyl Add fw_rst_cnt to store the number of resets after fw update. This value is required to detect if the EICR.MNG event occurred after firmware update reset. Signed-off-by: Radoslaw Tyl Reviewed-by: Skajewski, PiotrX Reviewed-by: Mrozowicz, SlawomirX Reviewed-by: Michael, Alice --- drivers/net/ixgbe/base/ixgbe_type.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base/ixgbe_type.h index 10164e274c..51b9ef274b 100644 --- a/drivers/net/ixgbe/base/ixgbe_type.h +++ b/drivers/net/ixgbe/base/ixgbe_type.h @@ -4164,6 +4164,7 @@ struct ixgbe_hw { bool allow_unsupported_sfp; bool wol_enabled; bool need_crosstalk_fix; + u32 fw_rst_cnt; }; #define ixgbe_call_func(hw, func, params, error) \