summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_dc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_dc.c')
-rw-r--r--sys/pci/if_dc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c
index 05d2ff6..7a0c54d 100644
--- a/sys/pci/if_dc.c
+++ b/sys/pci/if_dc.c
@@ -3373,6 +3373,8 @@ static void dc_stop(sc)
callout_stop(&sc->dc_stat_ch);
+ ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
+
DC_CLRBIT(sc, DC_NETCFG, (DC_NETCFG_RX_ON|DC_NETCFG_TX_ON));
CSR_WRITE_4(sc, DC_IMR, 0x00000000);
CSR_WRITE_4(sc, DC_TXADDR, 0x00000000);
@@ -3409,8 +3411,6 @@ static void dc_stop(sc)
bzero((char *)&sc->dc_ldata->dc_tx_list,
sizeof(sc->dc_ldata->dc_tx_list));
- ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
-
DC_UNLOCK(sc);
return;
OpenPOWER on IntegriCloud