.. | .. |
---|
96 | 96 | efx_mcdi_free_vis(efx); |
---|
97 | 97 | efx_remove_interrupts(efx); |
---|
98 | 98 | |
---|
| 99 | + efx->state = STATE_NET_DOWN; |
---|
| 100 | + |
---|
99 | 101 | return 0; |
---|
100 | 102 | } |
---|
101 | 103 | |
---|
.. | .. |
---|
171 | 173 | if (efx_mcdi_phy_poll(efx)) |
---|
172 | 174 | efx_link_status_changed(efx); |
---|
173 | 175 | mutex_unlock(&efx->mac_lock); |
---|
| 176 | + |
---|
| 177 | + efx->state = STATE_NET_UP; |
---|
174 | 178 | |
---|
175 | 179 | return 0; |
---|
176 | 180 | |
---|
.. | .. |
---|
272 | 276 | /* Always start with carrier off; PHY events will detect the link */ |
---|
273 | 277 | netif_carrier_off(net_dev); |
---|
274 | 278 | |
---|
275 | | - efx->state = STATE_READY; |
---|
| 279 | + efx->state = STATE_NET_DOWN; |
---|
276 | 280 | rtnl_unlock(); |
---|
277 | 281 | efx_init_mcdi_logging(efx); |
---|
278 | 282 | |
---|