]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix lag port remapping logic
authorEli Cohen <elic@nvidia.com>
Mon, 3 May 2021 11:39:58 +0000 (14:39 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 May 2021 18:54:39 +0000 (11:54 -0700)
commit4de260a9da5e57e4baa459714c8fce1c9e42d7c6
tree237b305b71e9071981d13d73b8e5eb5460f8e9f4
parent7c830af1a98fe05560415e1a0cb5c148f5b99eaa
net/mlx5: Fix lag port remapping logic

Fix the logic so that if both ports netdevices are enabled or disabled,
use the trivial mapping without swapping.

If only one of the netdevice's tx is enabled, use it to remap traffic to
that port.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lag.c