]> 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)
commitcbdfd9b78badff6eac0eac6e6a05435bb194cc8e
tree237b305b71e9071981d13d73b8e5eb5460f8e9f4
parentda41c2b61ff29cda0bbc2b08099ebd2aaf8c57ac
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