]> 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)
commitdd46e6427bdfd7575cac40c7c3a269cd77ccdeca
tree97a9a4fbe102eb894e6dd1a15f65e87852d8ae09
parent4d01f1898c1be86556cdd98b65436cd5a42801eb
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