net/mlx5: Fix HW spec violation configuring uplink
authorEli Cohen <elic@nvidia.com>
Wed, 24 Mar 2021 07:46:09 +0000 (09:46 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 7 Apr 2021 04:04:35 +0000 (21:04 -0700)
commit1a73704c82ed4ee95532ac04645d02075bd1ce3d
tree338168797f05e3b8933db281f1ca0d3361f99808
parent5219d6012d46ec1fa3397e50bfeb7b8c16df72cf
net/mlx5: Fix HW spec violation configuring uplink

Make sure to modify uplink port to follow only if the uplink_follow
capability is set as required by the HW spec. Failure to do so causes
traffic to the uplink representor net device to cease after switching to
switchdev mode.

Fixes: 7d0314b11cdd ("net/mlx5e: Modify uplink state on interface up/down")
Signed-off-by: Eli Cohen <elic@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c