net/mlx5: Report devlink health on FW issues
Use devlink_health_report() to report any symptom of FW issue as FW counter miss or new health syndrome. The FW issues detected in mlx5 during poll_health which is called in timer atomic context and so health work queue is used to schedule the reports. Signed-off-by: Moshe Shemesh <moshe@mellanox.com> Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:

committed by
Saeed Mahameed

parent
fd1483fe1f
commit
d1bf0e2cc4
@@ -435,7 +435,7 @@ struct mlx5_core_health {
|
||||
struct timer_list timer;
|
||||
u32 prev;
|
||||
int miss_counter;
|
||||
bool sick;
|
||||
u8 synd;
|
||||
u32 fatal_error;
|
||||
u32 crdump_size;
|
||||
/* wq spinlock to synchronize draining */
|
||||
@@ -443,6 +443,7 @@ struct mlx5_core_health {
|
||||
struct workqueue_struct *wq;
|
||||
unsigned long flags;
|
||||
struct work_struct work;
|
||||
struct work_struct report_work;
|
||||
struct delayed_work recover_work;
|
||||
struct devlink_health_reporter *fw_reporter;
|
||||
};
|
||||
|
Reference in New Issue
Block a user