net/mlx5: Start health poll at earlier stage of driver load
authorMoshe Shemesh <moshe@nvidia.com>
Sun, 2 Oct 2022 04:56:28 +0000 (21:56 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 3 Oct 2022 23:55:29 +0000 (16:55 -0700)
commit9b98d395b85dd042fe83fb696b1ac02e6c93a520
tree3db284535fa18d2085e7b85fbd6b92586cd59f97
parent16ab85e78439bab1201ff26ba430231d1574b4ae
net/mlx5: Start health poll at earlier stage of driver load

Start health poll at earlier stage, so if fw fatal issue occurred before
or during initialization commands such as init_hca or set_hca_cap the
poll health can detect and indicate that the driver is already in error
state.

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