net/mlx5: E-Switch, Remove redundant reloading of the IB interface
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 13 Nov 2018 09:09:30 +0000 (11:09 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 17 Dec 2018 19:03:26 +0000 (11:03 -0800)
The reload of the IB interface done on the offloads stop call is
redundant b/c we do that on mlx5_eswitch_disable_sriov(), remove it.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c

index 76cb5720247433ce33048f25c0844169e1c6ee27..53065b6ae59376089764fb5cb72f61de7f395c7d 100644 (file)
@@ -1450,9 +1450,6 @@ static int esw_offloads_stop(struct mlx5_eswitch *esw,
                }
        }
 
-       /* enable back PF RoCE */
-       mlx5_reload_interface(esw->dev, MLX5_INTERFACE_PROTOCOL_IB);
-
        return err;
 }