]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: reread information about speed and duplex when interface goes up
authorKrzysztof Piotr Oledzki <ole@ans.pl>
Wed, 6 Oct 2010 21:28:22 +0000 (14:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Oct 2010 21:28:22 +0000 (14:28 -0700)
commitc439640f42602e57730640da356b3392c972ef4f
tree1be2cca38edc0d2fdc2f5fc2c9cdddb0585cbaa3
parent0f924f792b39555e9d9bdfb3ece1a3c4628a6a90
bonding: reread information about speed and duplex when interface goes up

When an interface was enslaved when it was down, bonding thinks
it has speed -1 even after it goes up. This leads into selecting
a wrong active interface in active/backup mode on mixed 10G/1G or
1G/100M environment.

before:
 bonding: bond0: link status definitely up for interface eth5, 100 Mbps full duplex.
 bonding: bond0: link status definitely up for interface eth0, 100 Mbps full duplex.

after:
 bonding: bond0: link status definitely up for interface eth5, 10000 Mbps full duplex.
 bonding: bond0: link status definitely up for interface eth0, 1000 Mbps full duplex.

Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c