From: Phil Oester Date: Mon, 14 Mar 2011 06:22:05 +0000 (+0000) Subject: bonding: Call netif_carrier_off after register_netdevice X-Git-Tag: v2.6.39-rc1~468^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e826eafa65c6f1f7c8db5a237556cebac57ebcc5;p=pandora-kernel.git bonding: Call netif_carrier_off after register_netdevice 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 Signed-off-by: Andy Gospodarek Signed-off-by: David S. Miller --- Reading git-diff-tree failed