summaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/falcon_xmac.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-08-26 10:16:27 +0200
committerDavid S. Miller <davem@davemloft.net>2009-08-27 02:38:49 +0200
commitaed0628dae0c26b47d40d65f942abe30279b52a5 (patch)
treec6525e610300eb43f138bb9c14ee9ef1f8693f0c /drivers/net/sfc/falcon_xmac.c
parentqeth: display "undefined" value of sysfs-attribute "layer2" (diff)
downloadlinux-aed0628dae0c26b47d40d65f942abe30279b52a5.tar.xz
linux-aed0628dae0c26b47d40d65f942abe30279b52a5.zip
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 <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/falcon_xmac.c')
0 files changed, 0 insertions, 0 deletions