summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlx5/core/cmd.c
diff options
context:
space:
mode:
authorAviv Heller <avivh@mellanox.com>2017-07-02 19:13:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-11 08:49:33 -0700
commitfca84d617f77ef8b5e52ef4db057971e96eee25a (patch)
treef8a152b63e11afc62870a66cf110ac401124b32c /drivers/net/ethernet/mellanox/mlx5/core/cmd.c
parentdf32d08293ea7db4fe7e030bd47c71b7f63fc05f (diff)
net/mlx5: Consider tx_enabled in all modes on remap
[ Upstream commit dc798b4cc0f2a06e7ad7d522403de274b86a0a6f ] 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: 7907f23adc18 (net/mlx5: Implement RoCE LAG feature) Signed-off-by: Aviv Heller <avivh@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/cmd.c')
0 files changed, 0 insertions, 0 deletions