]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: SF, Stop waiting for FW as teardown was called
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 25 Jan 2024 12:24:09 +0000 (14:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 09:23:32 +0000 (11:23 +0200)
commit87d1f84036901cbee470cd6fef9f6ba390b45994
tree45278d8c543ba88406d0815e23822b947bc9c021
parent562b7245131f6e9f1d280c8b5a8750f03edfc05c
net/mlx5: SF, Stop waiting for FW as teardown was called

[ Upstream commit 137cef6d55564fb687d12fbc5f85be43ff7b53a7 ]

When PF/VF teardown is called the driver sets the flag
MLX5_BREAK_FW_WAIT to stop waiting for FW loading and initializing. Same
should be applied to SF driver teardown to cut waiting time. On
mlx5_sf_dev_remove() set the flag before draining health WQ as recovery
flow may also wait for FW reloading while it is not relevant anymore.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Aya Levin <ayal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Stable-dep-of: c6e77aa9dd82 ("net/mlx5: Register devlink first under devlink lock")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/sf/dev/driver.c