]> 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)
commit298d19f481e73abebafba4c37f366e03feb375a1
tree338168797f05e3b8933db281f1ca0d3361f99808
parent56a8917612199250b9f418dc5ccbdf1ebfa95b47
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: 8ad392b55efd ("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