From patchwork Fri May 3 13:57:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Burakov, Anatoly" X-Patchwork-Id: 139838 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 24AF143F76; Fri, 3 May 2024 15:59:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 20FF3406BA; Fri, 3 May 2024 15:58:42 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by mails.dpdk.org (Postfix) with ESMTP id 6F7A240A72 for ; Fri, 3 May 2024 15:58:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714744720; x=1746280720; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yNtyhPlqaKQpxLROs19p+u0RRVqEx/1Vo+G7SwqKUGc=; b=N1LsOnwq27vTbUwJhtJnol4RXt5kvJR2gqaVPKygIHFZ+ij2URTRJtiF shBxGgPclCUJZ/R4jn6PsYUaCqZ1GhDe6r5UHBqSsawIQaSvBhWec2uO0 xpEzib3osIeDbGasXc7lFd3NbKxyP4dxWtK4Ey1vE70PrmBGTHcILGHG6 JEhgLkNKMuciMQXZWPcPalCN9Cy6G9aSbO/mX4vpIzNDBbC18TMNmgzeN Y/DMvJRsDhLiUmDtGdSwMsU3hMsMG9pEyZ25vhAFVsy+mOZPiQQyDDb7X J1f0Gpl31mWYZCWWfyCie3jGllulgAaqjMqoW/0bC6C24AJsTi29llNT5 g==; X-CSE-ConnectionGUID: KUQIN5T3TzC407+FEspz/A== X-CSE-MsgGUID: 4WwbTTgEQV6nEXm9uBEOYg== X-IronPort-AV: E=McAfee;i="6600,9927,11063"; a="10714934" X-IronPort-AV: E=Sophos;i="6.07,251,1708416000"; d="scan'208";a="10714934" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2024 06:58:40 -0700 X-CSE-ConnectionGUID: 7lC1QktITreIkaO5GEZ/ng== X-CSE-MsgGUID: G2fEDJdCQIWR3JspSN/epw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,251,1708416000"; d="scan'208";a="50641991" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by fmviesa002.fm.intel.com with ESMTP; 03 May 2024 06:58:38 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Radoslaw Tyl , bruce.richardson@intel.com, vladimir.medvedkin@intel.com, Skajewski@dpdk.org, PiotrX , Mrozowicz@dpdk.org, SlawomirX , Michael@dpdk.org, Alice Subject: [PATCH v2 10/27] net/ixgbe/base: add fw_rst_cnt field to ixgbe_hw struct Date: Fri, 3 May 2024 14:57:41 +0100 Message-ID: <2c2282765c41174f0c41dd9e980d5d7f19f23368.1714744628.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) \