]> Gentwo Git Trees - linux/.git/commit
net/mlx5: Stop polling for command response if interface goes down
authorMoshe Shemesh <moshe@nvidia.com>
Sun, 28 Sep 2025 21:02:07 +0000 (00:02 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 30 Sep 2025 01:51:22 +0000 (18:51 -0700)
commitb1f0349bd6d320c382df2e7f6fc2ac95c85f2b18
tree098d7791a8266d5ec8cd59f0f438b7f4afbbaadf
parent8169a6011c5fecc6cb1c3654c541c567d3318de8
net/mlx5: Stop polling for command response if interface goes down

Stop polling on firmware response to command in polling mode if the
command interface got down. This situation can occur, for example, if a
firmware fatal error is detected during polling.

This change halts the polling process when the command interface goes
down, preventing unnecessary waits.

Fixes: b898ce7bccf1 ("net/mlx5: cmdif, Avoid skipping reclaim pages if FW is not accessible")
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Shay Drori <shayd@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c