From: Ben Hutchings Date: Wed, 26 Aug 2009 08:16:27 +0000 (+0000) Subject: sfc: Fix ordering of device registration and initial netif_carrier_off() X-Git-Tag: v2.6.32-rc1~703^2~286 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aed0628dae0c26b47d40d65f942abe30279b52a5;p=pandora-kernel.git sfc: Fix ordering of device registration and initial netif_carrier_off() We must call netif_carrier_off() after the device is registered, not before, to set the operational state and user-space IFF_RUNNING flag correctly. Since we don't want observers to see an intermediate state, open-code register_netdev() and add efx_update_name() and netif_carrier_off() into the locked region. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- Reading git-diff-tree failed