]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Disable eswitch before waiting for VF pages
authorDaniel Jurgens <danielj@nvidia.com>
Wed, 19 Oct 2022 21:13:50 +0000 (00:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:48 +0000 (13:33 +0100)
commita0b4f28e662052bea8c400166a3652133c18c171
treeaa75308e18a35a9db5d444b078ef1b44286bdc82
parentda24c71ebcaa9af4c70e5f8f06e53dc60a8530a3
net/mlx5: Disable eswitch before waiting for VF pages

[ Upstream commit 5998144955d5ec881cb61849571da0c101a33471 ]

The offending commit changed the ordering of moving to legacy mode and
waiting for the VF pages. Moving to legacy mode is important in
bluefield, because it sends the host driver into error state, and frees
its pages. Without this transition we end up waiting 2 minutes for
pages that aren't coming before carrying on with the unload process.

Fixes: da5c5f25de4b ("net/mlx5: E-switch, Remove dependency between sriov and eswitch mode")
Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/main.c