]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Consider tx_enabled in all modes on remap
authorAviv Heller <avivh@mellanox.com>
Sun, 2 Jul 2017 16:13:43 +0000 (19:13 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 27 Jul 2017 13:40:16 +0000 (16:40 +0300)
commitc0a1982b7aa804a09731ce92ec1fb394e937df13
treef647ae6ec7f3ee338d19c1c1d2922ad7f60a0712
parente7af34d12747108ceb34e037fdc294327be9b82f
net/mlx5: Consider tx_enabled in all modes on remap

The tx_enabled lag event field is used to determine whether a slave is
active.
Current logic uses this value only if the mode is active-backup.

However, LACP mode, although considered a load balancing mode, can mark
a slave as inactive in certain situations (e.g., LACP timeout).

This fix takes the tx_enabled value into account when remapping, with
no respect to the LAG mode (this should not affect the behavior in XOR
mode, since in this mode both slaves are marked as active).

Fixes: b5c921ce4638 (net/mlx5: Implement RoCE LAG feature)
Signed-off-by: Aviv Heller <avivh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lag.c