]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: Have bond_check_dev_link examine netif_running
authorPetri Gynther <pgynther@google.com>
Fri, 28 Aug 2009 12:05:15 +0000 (12:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Aug 2009 06:01:20 +0000 (23:01 -0700)
commit6afbe345a0e739226a517aef2ef712aa167544a8
tree0db75832b80b10c1aca6f668dd20247b973eb786
parent7b13fcefca5b8994e044433acb39c126f1c42d31
bonding: Have bond_check_dev_link examine netif_running

bonding: Have bond_check_dev_link examine netif_running

Some network devices do not call netif_carrier_off when they
are set administratively down.  Have the bonding link check function
also inspect the netif_running state.  Ignore netif_running if the
bond_check_dev_link function is called with "reporting" set, as in that
case it's inspecting the capabilities of the non-netif_carrier device
driver.

Signed-off-by: Petri Gynther <pgynther@google.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c