]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2025 09:56:38 +0000 (11:56 +0200)
commitca117b13d0f6e4a52945bb98c469a52bddce9681
treefe56fdb099b09aa05aebac7e41d6acfb2c92f4f5
parent9d49e4b14609e1a20d931e718962c4b6b5485174
net/mlx5: Stop polling for command response if interface goes down

[ Upstream commit b1f0349bd6d320c382df2e7f6fc2ac95c85f2b18 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c