]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: start slaves with link down for ARP monitor
authorMichal Kubeček <mkubecek@suse.cz>
Tue, 17 Apr 2012 02:02:06 +0000 (02:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2012 19:25:02 +0000 (15:25 -0400)
commitab8ca39804405c4ce30b7f3943c15ae16f5559f1
tree97a9a4fbe102eb894e6dd1a15f65e87852d8ae09
parentc40677d5ef45e4da723efd65952051c158cbf2ef
bonding: start slaves with link down for ARP monitor

Initialize slave device link state as down if ARP monitor is
active and net_carrier_ok() returns zero. Also shift initial
value of its last_arp_tx so that it doesn't immediately cause
fake detection of "up" state.

When ARP monitoring is used, initializing the slave device with
up link state can cause ARP monitor to detect link failure
before the device is really up (with igb driver, this can take
more than two seconds).

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c