From: Or Gerlitz Date: Tue, 13 Nov 2018 09:09:30 +0000 (+0200) Subject: net/mlx5: E-Switch, Remove redundant reloading of the IB interface X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=915fe1a0d9cbf6d7657b388833dbcae13d22a567;p=openwrt%2Fstaging%2Fblogic.git net/mlx5: E-Switch, Remove redundant reloading of the IB interface 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 Reviewed-by: Mark Bloch Signed-off-by: Saeed Mahameed --- diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c index 76cb57202474..53065b6ae593 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c @@ -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; }