aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cnic_defs.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-08-26 04:16:27 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-26 20:38:49 -0400
commitaed0628dae0c26b47d40d65f942abe30279b52a5 (patch)
treec6525e610300eb43f138bb9c14ee9ef1f8693f0c /drivers/net/cnic_defs.h
parent7c6a3ed5bd61ec981c8a0d0111cfd435adf3f2b7 (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/cnic_defs.h')
0 files changed, 0 insertions, 0 deletions