aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/nge
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2004-04-11 16:26:39 +0000
committerRobert Watson <rwatson@FreeBSD.org>2004-04-11 16:26:39 +0000
commitfa9336b832723490e5dd918d3ecb2bd9fa100a43 (patch)
tree81467a19a5004ca86944d24e28920d28c6f47172 /sys/dev/nge
parent2ea4f0effc55f4d9e791bfbd92261f3b035fc439 (diff)
downloadsrc-fa9336b832723490e5dd918d3ecb2bd9fa100a43.tar.gz
src-fa9336b832723490e5dd918d3ecb2bd9fa100a43.zip
Compare IFF_POLLING flag with ifp->if_flags rather than ifp->if_ipending,
which was almost certainly a bug since polling support was introduced in this driver. Found during discussion with: mlaier
Notes
Notes: svn path=/head/; revision=128122
Diffstat (limited to 'sys/dev/nge')
-rw-r--r--sys/dev/nge/if_nge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/nge/if_nge.c b/sys/dev/nge/if_nge.c
index 2805b1e09d7b..2b85ed1310d6 100644
--- a/sys/dev/nge/if_nge.c
+++ b/sys/dev/nge/if_nge.c
@@ -1310,7 +1310,7 @@ nge_rxeof(sc)
u_int32_t extsts;
#ifdef DEVICE_POLLING
- if (ifp->if_ipending & IFF_POLLING) {
+ if (ifp->if_flags & IFF_POLLING) {
if (sc->rxcycles <= 0)
break;
sc->rxcycles--;
@@ -1576,7 +1576,7 @@ nge_intr(arg)
ifp = &sc->arpcom.ac_if;
#ifdef DEVICE_POLLING
- if (ifp->if_ipending & IFF_POLLING)
+ if (ifp->if_flags & IFF_POLLING)
return;
if (ether_poll_register(nge_poll, ifp)) { /* ok, disable interrupts */
CSR_WRITE_4(sc, NGE_IER, 0);
@@ -1956,7 +1956,7 @@ nge_init(xsc)
* ... only enable interrupts if we are not polling, make sure
* they are off otherwise.
*/
- if (ifp->if_ipending & IFF_POLLING)
+ if (ifp->if_flags & IFF_POLLING)
CSR_WRITE_4(sc, NGE_IER, 0);
else
#endif /* DEVICE_POLLING */