]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Apr 2021 06:47:23 +0000 (08:47 +0200)
commitd2a6cda95cb037191963ca5481547bda46943625
tree3a1dde628936dfee30901fd1dfb6df3de2959f53
parent8679f4a647c480ea33e2c767deced16e845069a8
net/mlx5: Fix HW spec violation configuring uplink

[ Upstream commit 1a73704c82ed4ee95532ac04645d02075bd1ce3d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c