summaryrefslogtreecommitdiffstats
path: root/sys/dev/nfe
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2011-05-31 18:45:15 +0000
committeryongari <yongari@FreeBSD.org>2011-05-31 18:45:15 +0000
commitb46c0fe606309a6413cf0055a83f3c47611da1d2 (patch)
treebe2ab23d455a142f2dd82c0f99fe7bd7f3eb5b8b /sys/dev/nfe
parent8df7462688d6ed8e2145438f6105668477a2e814 (diff)
downloadFreeBSD-src-b46c0fe606309a6413cf0055a83f3c47611da1d2.zip
FreeBSD-src-b46c0fe606309a6413cf0055a83f3c47611da1d2.tar.gz
If driver is not running, disable interrupts and do not try to
process received frames. Previously it was possible to handle RX interrupts even if controller is not fully initialized. This resulted in non-working driver after system is up and running. Reported by: hselasky Tested by: hselasky
Diffstat (limited to 'sys/dev/nfe')
-rw-r--r--sys/dev/nfe/if_nfe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/nfe/if_nfe.c b/sys/dev/nfe/if_nfe.c
index 6cdfa34..28a3c01 100644
--- a/sys/dev/nfe/if_nfe.c
+++ b/sys/dev/nfe/if_nfe.c
@@ -1889,7 +1889,7 @@ nfe_int_task(void *arg, int pending)
if ((ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) {
NFE_UNLOCK(sc);
- nfe_enable_intr(sc);
+ nfe_disable_intr(sc);
return;
}
OpenPOWER on IntegriCloud