Skip to content

Commit 7fbdbcc

Browse files
roidayangregkh
authored andcommitted
net/mlx5e: Fix set vf link state error flow
[ Upstream commit 7510212 ] Before this commit the ndo always returned success. Fix that. Fixes: 1ab2068 ("net/mlx5: Implement vports admin state backup/restore") Signed-off-by: Roi Dayan <roid@mellanox.com> Reviewed-by: Vlad Buslov <vladbu@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ca12407 commit 7fbdbcc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/net/ethernet/mellanox/mlx5/core

‎drivers/net/ethernet/mellanox/mlx5/core/eswitch.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,7 @@ int mlx5_eswitch_set_vport_state(struct mlx5_eswitch *esw,
20442044

20452045
unlock:
20462046
mutex_unlock(&esw->state_lock);
2047-
return 0;
2047+
return err;
20482048
}
20492049

20502050
int mlx5_eswitch_get_vport_config(struct mlx5_eswitch *esw,

0 commit comments

Comments
 (0)