From: Petri Gynther Date: Thu, 20 Aug 2009 09:21:27 +0000 (-0700) Subject: ibm_newemac: emac_close() needs to call netif_carrier_off() X-Git-Tag: v2.6.31-rc8~45^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3b325f9c25be6d504bc73afce7f92d0e25001d7;p=pandora-kernel.git ibm_newemac: emac_close() needs to call netif_carrier_off() When ibm_newemac netdev instance is shutdown with "ifconfig down", the netdev interface does not go properly down. netif_carrier_ok() keeps returning TRUE even after "ifconfig down". The problem can be seen when ibm_newemac instances are slaves of a bonding interface. The bonding interface code uses netif_carrier_ok() to determine the link status of its slaves. When ibm_newemac slave is shutdown with "ifconfig down", the bonding interface won't detect any link status change because netif_carrier_ok() keeps returning TRUE. Signed-off-by: Petri Gynther Signed-off-by: David S. Miller --- Reading git-diff-tree failed