OSDN Git Service

net/mlx5e: Don't override vport admin link state in switchdev mode
authorJianbo Liu <jianbol@mellanox.com>
Fri, 2 Mar 2018 02:09:08 +0000 (02:09 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 26 Mar 2018 20:58:15 +0000 (13:58 -0700)
commit84c9c8f2ac3c22924d30643894fcf7597c633d3e
treec3025635c0c3b61388e1b24daf8ca3e315bb9798
parent3c82b372a9f44aa224b8d5106ff6f1ad516fa8a8
net/mlx5e: Don't override vport admin link state in switchdev mode

The vport admin original link state will be re-applied after returning
back to legacy mode, it is not right to change the admin link state value
when in switchdev mode.

Use direct vport commands to alter logical vport state in netdev
representor open/close flows rather than the administrative eswitch API.

Fixes: 20a1ea674783 ('net/mlx5e: Support VF vport link state control for SRIOV switchdev mode')
Signed-off-by: Jianbo Liu <jianbol@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c