Commit 75102121 authored by Roi Dayan's avatar Roi Dayan Committed by Saeed Mahameed
Browse files

net/mlx5e: Fix set vf link state error flow



Before this commit the ndo always returned success.
Fix that.

Fixes: 1ab2068a ("net/mlx5: Implement vports admin state backup/restore")
Signed-off-by: default avatarRoi Dayan <roid@mellanox.com>
Reviewed-by: default avatarVlad Buslov <vladbu@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 21586a0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2117,7 +2117,7 @@ int mlx5_eswitch_set_vport_state(struct mlx5_eswitch *esw,

unlock:
	mutex_unlock(&esw->state_lock);
	return 0;
	return err;
}

int mlx5_eswitch_get_vport_config(struct mlx5_eswitch *esw,