net/mlx5e: Fix set vf link state error flow
authorRoi Dayan <roid@mellanox.com>
Wed, 13 Nov 2019 12:42:00 +0000 (14:42 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 20 Nov 2019 20:33:05 +0000 (12:33 -0800)
commit751021218f7e66ee9bbaa2be23056e447cd75ec4
tree195643836601035e37350c28895be6744df45043
parent21586a0fc44caf43c5ac5df9bb5620fdfb95ba92
net/mlx5e: Fix set vf link state error flow

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

Fixes: 1ab2068a4c66 ("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>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c