summaryrefslogtreecommitdiff
path: root/sys/dev/nfe
diff options
context:
space:
mode:
authorPyun YongHyeon <yongari@FreeBSD.org>2007-09-14 05:12:25 +0000
committerPyun YongHyeon <yongari@FreeBSD.org>2007-09-14 05:12:25 +0000
commit0142a9b1713e1d6eca19eb4ac8cd45110648523a (patch)
tree8e92e3e2fe7d416b0abf16c76c8d83281cec9de8 /sys/dev/nfe
parent4e41e905d8a8311fa9a5968de33869a0c7865705 (diff)
Notes
Diffstat (limited to 'sys/dev/nfe')
-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)