summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorMoshe Shemesh <moshe@mellanox.com>2018-12-11 16:09:56 +0200
committerSaeed Mahameed <saeedm@mellanox.com>2019-06-13 13:23:19 -0700
commitd1bf0e2cc4a6e66c2bff48176b8b2930098468ef (patch)
treed3cb42125c88b41af31d0ab9523d78a0b82f277b /include/linux/mlx5
parentfd1483fe1f9fd45fe312adffb0faffa57446690d (diff)
downloadlinux-d1bf0e2cc4a6e66c2bff48176b8b2930098468ef.tar.gz
linux-d1bf0e2cc4a6e66c2bff48176b8b2930098468ef.tar.bz2
linux-d1bf0e2cc4a6e66c2bff48176b8b2930098468ef.zip
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>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/driver.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 8d5d065d1aa6..1931a4080d78 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -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;
};