bonding: Call netif_carrier_off after register_netdevice
authorPhil Oester <kernel@linuxace.com>
Mon, 14 Mar 2011 06:22:05 +0000 (06:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Mar 2011 02:29:38 +0000 (19:29 -0700)
Bringing up a bond interface with all network cables disconnected
does not properly set the interface as DOWN because the call to
netif_carrier_off occurs too early in bond_init.  The call needs
to occur after register_netdevice has set dev->reg_state to
NETREG_REGISTERED, so that netif_carrier_off will trigger the
call to linkwatch_fire_event.

Signed-off-by: Phil Oester <kernel@linuxace.com>
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found