]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/mlx5: Start health poll after enable hca
authorMoshe Shemesh <moshe@nvidia.com>
Tue, 18 Mar 2025 20:51:17 +0000 (22:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 24 Mar 2025 22:22:57 +0000 (15:22 -0700)
commit1726ad035cb0c93cc5c3f2227ec71322ccd7c2f8
treee2d19284e4314d618870bc3cc04765f75f3f7f78
parentbdf549a7a4d738838d50833168881a0b6247446a
net/mlx5: Start health poll after enable hca

The health poll mechanism performs periodic checks to detect firmware
errors. One of the checks verifies the function is still enabled on
firmware side, but the function is enabled only after enable_hca command
completed. Start health poll after enable_hca command to avoid a race
between function enabled and first health polling.

Fixes: 9b98d395b85d ("net/mlx5: Start health poll at earlier stage of driver load")
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Shay Drori <shayd@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Link: https://patch.msgid.link/1742331077-102038-3-git-send-email-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/main.c