Re: [PATCH net-next 8/9] bnxt_en: implement hw health reporter
From: Jakub Kicinski <kuba@kernel.org>
Date: 2022-03-07 22:22:04
From: Jakub Kicinski <kuba@kernel.org>
Date: 2022-03-07 22:22:04
On Sat, 5 Mar 2022 03:54:41 -0500 Michael Chan wrote:
+static int bnxt_hw_recover(struct devlink_health_reporter *reporter,
+ void *priv_ctx,
+ struct netlink_ext_ack *extack)
+{
+ struct bnxt *bp = devlink_health_reporter_priv(reporter);
+ struct bnxt_hw_health *hw_health = &bp->hw_health;
+
+ hw_health->synd = BNXT_HW_STATUS_HEALTHY;
+ return 0;
+}This seems like a very weird recovery function. I guess the FW automatically does auto-recovery and the driver has no control over it?