hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/sfc/ef100_netdev.c
....@@ -96,6 +96,8 @@
9696 efx_mcdi_free_vis(efx);
9797 efx_remove_interrupts(efx);
9898
99
+ efx->state = STATE_NET_DOWN;
100
+
99101 return 0;
100102 }
101103
....@@ -171,6 +173,8 @@
171173 if (efx_mcdi_phy_poll(efx))
172174 efx_link_status_changed(efx);
173175 mutex_unlock(&efx->mac_lock);
176
+
177
+ efx->state = STATE_NET_UP;
174178
175179 return 0;
176180
....@@ -272,7 +276,7 @@
272276 /* Always start with carrier off; PHY events will detect the link */
273277 netif_carrier_off(net_dev);
274278
275
- efx->state = STATE_READY;
279
+ efx->state = STATE_NET_DOWN;
276280 rtnl_unlock();
277281 efx_init_mcdi_logging(efx);
278282