]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: require speed/duplex only for 802.3ad, alb and tlb
authorAndreas Born <futur.andy@googlemail.com>
Thu, 10 Aug 2017 04:41:44 +0000 (06:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 21:21:42 +0000 (14:21 -0700)
commit1738ce60dba95143a2ac5591c09ac0d0f5f86010
treeb714609403d7c5e210c2d4bc805dd3716c900584
parent7b016ee95067145c93d5ad632dd17211276980b0
bonding: require speed/duplex only for 802.3ad, alb and tlb

The patch 5605fc182cc0 ("bonding: make speed, duplex setting consistent
with link state") puts the link state to down if
bond_update_speed_duplex() cannot retrieve speed and duplex settings.
Assumably the patch was written with 802.3ad mode in mind which relies
on link speed/duplex settings. For other modes like active-backup these
settings are not required. Thus, only for these other modes, this patch
reintroduces support for slaves that do not support reporting speed or
duplex such as wireless devices. This fixes the regression reported in
bug 196547 (https://bugzilla.kernel.org/show_bug.cgi?id=196547).

Fixes: 5605fc182cc0 ("bonding: make speed, duplex setting consistent
with link state")
Signed-off-by: Andreas Born <futur.andy@googlemail.com>
Acked-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
include/net/bonding.h