[PATCH v1 10/22] net/ixgbe/base: add fw_rst_cnt field to ixgbe_hw struct

Anatoly Burakov anatoly.burakov at intel.com
Wed Apr 24 15:21:44 CEST 2024


From: Radoslaw Tyl <radoslawx.tyl at intel.com>

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 <radoslawx.tyl at intel.com>
Reviewed-by: Skajewski, PiotrX <piotrx.skajewski at intel.com>
Reviewed-by: Mrozowicz, SlawomirX <slawomirx.mrozowicz at intel.com>
Reviewed-by: Michael, Alice <alice.michael at intel.com>
---
 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) \
-- 
2.43.0



More information about the dev mailing list