summaryrefslogtreecommitdiff
path: root/net/core/net-sysfs.c
diff options
context:
space:
mode:
authorMahesh Bandewar <maheshb@google.com>2017-09-27 18:03:49 -0700
committerDavid S. Miller <davem@davemloft.net>2017-10-03 14:32:25 -0700
commit4d2c0cda07448ea6980f00102dc3964eb25e241c (patch)
tree8fe0b6d00f145536109bc5c1416d41daf90d86ab /net/core/net-sysfs.c
parentb5c7d4e54c9ab830e5c03f92377fe15cbae64d0d (diff)
bonding: speed/duplex update at NETDEV_UP event
Some NIC drivers don't have correct speed/duplex settings at the time they send NETDEV_UP notification and that messes up the bonding state. Especially 802.3ad mode which is very sensitive to these settings. In the current implementation we invoke bond_update_speed_duplex() when we receive NETDEV_UP, however, ignore the return value. If the values we get are invalid (UNKNOWN), then slave gets removed from the aggregator with speed and duplex set to UNKNOWN while link is still marked as UP. This patch fixes this scenario. Also 802.3ad mode is sensitive to these conditions while other modes are not, so making sure that it doesn't change the behavior for other modes. Signed-off-by: Mahesh Bandewar <maheshb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/net-sysfs.c')
0 files changed, 0 insertions, 0 deletions