]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitae1ba8cad56c280090c48877563ccece7ed57888
tree338168797f05e3b8933db281f1ca0d3361f99808
parent5d4fc4fb27ded71e907bfec272a453acae216df0
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: 4d7c893848c7 ("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