aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/nfe/if_nfe.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/nfe/if_nfe.c')
-rw-r--r--sys/dev/nfe/if_nfe.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/nfe/if_nfe.c b/sys/dev/nfe/if_nfe.c
index 050a3ffa79a5..edac0faa9b9a 100644
--- a/sys/dev/nfe/if_nfe.c
+++ b/sys/dev/nfe/if_nfe.c
@@ -1930,18 +1930,18 @@ nfe_int_task(void *arg, int pending)
}
#endif
- if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) {
- NFE_UNLOCK(sc);
- nfe_enable_intr(sc);
- return;
- }
-
if (r & NFE_IRQ_LINK) {
NFE_READ(sc, NFE_PHY_STATUS);
NFE_WRITE(sc, NFE_PHY_STATUS, 0xf);
DPRINTF(sc, "link state changed\n");
}
+ if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) {
+ NFE_UNLOCK(sc);
+ nfe_enable_intr(sc);
+ return;
+ }
+
domore = 0;
/* check Rx ring */
if (sc->nfe_framesize > MCLBYTES - ETHER_HDR_LEN)