]> www.infradead.org Git - users/jedix/linux-maple.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)
commitbec05b05e698848aa563ae0a741bb76f8fde4517
treeaa75308e18a35a9db5d444b078ef1b44286bdc82
parent752860d8aaf42f3568e01cb0d5abaf40de7157c5
net/mlx5: Disable eswitch before waiting for VF pages

[ Upstream commit 7ba930fc25def6fd736abcdfa224272948a65cf7 ]

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: f019679ea5f2 ("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