Skip to content

Commit 7ba930f

Browse files
danielj-mellanoxSaeed Mahameed
authored andcommitted
net/mlx5: Disable eswitch before waiting for VF pages
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: f019679 ("net/mlx5: E-switch, Remove dependency between sriov and eswitch mode") Signed-off-by: Daniel Jurgens <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent ba5d8f7 commit 7ba930f

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,8 +1364,8 @@ static void mlx5_unload(struct mlx5_core_dev *dev)
13641364
{
13651365
mlx5_devlink_traps_unregister(priv_to_devlink(dev));
13661366
mlx5_sf_dev_table_destroy(dev);
1367-
mlx5_sriov_detach(dev);
13681367
mlx5_eswitch_disable(dev->priv.eswitch);
1368+
mlx5_sriov_detach(dev);
13691369
mlx5_lag_remove_mdev(dev);
13701370
mlx5_ec_cleanup(dev);
13711371
mlx5_sf_hw_table_destroy(dev);

0 commit comments

Comments
 (0)