OSDN Git Service

net/mlx5: Report devlink health on FW fatal issues
authorMoshe Shemesh <moshe@mellanox.com>
Sun, 27 Jan 2019 16:38:39 +0000 (18:38 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 13 Jun 2019 20:23:19 +0000 (13:23 -0700)
commitb3bd076f7501afea2871bb4738ab53498fd32cd5
tree0a09a7f8ddd3337e4691326a0d5521ddca01ddc6
parent9b1f2982360579cbdb3069fa026f6cfc31c4388b
net/mlx5: Report devlink health on FW fatal issues

Report devlink health on FW fatal issues via fw_fatal_reporter. The
driver recover flow for FW fatal error is now being handled by the
devlink health.

Having the recovery controlled by devlink health, the user has the
ability to cancel the auto-recovery for debug session and run it
manually.

Call mlx5_enter_error_state() before calling devlink_health_report() to
ensure entering device error state even if auto-recovery is off.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/health.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/driver.h