diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-08-26 10:16:27 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-27 02:38:49 +0200 |
commit | aed0628dae0c26b47d40d65f942abe30279b52a5 (patch) | |
tree | c6525e610300eb43f138bb9c14ee9ef1f8693f0c /drivers/net/sfc/falcon_xmac.c | |
parent | qeth: display "undefined" value of sysfs-attribute "layer2" (diff) | |
download | linux-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