projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21586a0
)
net/mlx5e: Fix set vf link state error flow
author
Roi Dayan
<roid@mellanox.com>
Wed, 13 Nov 2019 12:42:00 +0000
(14:42 +0200)
committer
Saeed Mahameed
<saeedm@mellanox.com>
Wed, 20 Nov 2019 20:33:05 +0000
(12:33 -0800)
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
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
index 30aae76b6a1d093d9f55f1d325cc447b0d6b876e..60fddf8afc99e3e9a150c498d395fadb40c3958d 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
@@
-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,