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)
commitf31c7937c2548bfa73da5074808c29617a932e29
tree97a9a4fbe102eb894e6dd1a15f65e87852d8ae09
parentbf1ac5ca6f0dede02635588704d216da474b4baa
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