]> 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)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 6 Feb 2024 00:45:51 +0000 (16:45 -0800)
commit137cef6d55564fb687d12fbc5f85be43ff7b53a7
treeaabc3742993afc33fd35511fcc458a533a37863f
parent17aa2d79b7e550acea2eeafb079773344bada714
net/mlx5: SF, Stop waiting for FW as teardown was called

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>
drivers/net/ethernet/mellanox/mlx5/core/sf/dev/driver.c