Skip to content

Commit 7510212

Browse files
roidayanSaeed Mahameed
authored andcommitted
net/mlx5e: Fix set vf link state error flow
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>
1 parent 21586a0 commit 7510212

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
@@ -2117,7 +2117,7 @@ int mlx5_eswitch_set_vport_state(struct mlx5_eswitch *esw,
21172117

21182118
unlock:
21192119
mutex_unlock(&esw->state_lock);
2120-
return 0;
2120+
return err;
21212121
}
21222122

21232123
int mlx5_eswitch_get_vport_config(struct mlx5_eswitch *esw,

0 commit comments

Comments
 (0)