diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-08-26 04:16:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-26 20:38:49 -0400 |
commit | aed0628dae0c26b47d40d65f942abe30279b52a5 (patch) | |
tree | c6525e610300eb43f138bb9c14ee9ef1f8693f0c /drivers/net/sun3_82586.c | |
parent | 7c6a3ed5bd61ec981c8a0d0111cfd435adf3f2b7 (diff) |
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/sun3_82586.c')
0 files changed, 0 insertions, 0 deletions