summaryrefslogtreecommitdiffstats
path: root/sys/dev/bce
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-04-13 14:12:26 +0000
committerru <ru@FreeBSD.org>2006-04-13 14:12:26 +0000
commitc3bf094702ba269684b1c901c22bdfb65291e2a6 (patch)
treed9312089be50c141a918cf310c7636548ff75390 /sys/dev/bce
parent9568bc10a09a5c5aa6cec109b84b7c7eca83d7b4 (diff)
downloadFreeBSD-src-c3bf094702ba269684b1c901c22bdfb65291e2a6.zip
FreeBSD-src-c3bf094702ba269684b1c901c22bdfb65291e2a6.tar.gz
Fix DEVICE_POLLING support (compile-only tested).
Diffstat (limited to 'sys/dev/bce')
-rw-r--r--sys/dev/bce/if_bce.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/bce/if_bce.c b/sys/dev/bce/if_bce.c
index 571b3a6..0af02d1 100644
--- a/sys/dev/bce/if_bce.c
+++ b/sys/dev/bce/if_bce.c
@@ -4090,7 +4090,7 @@ bce_rx_intr(struct bce_softc *sc)
if (ifp->if_capenable & IFCAP_POLLING) {
if (sc->bce_rxcycles <= 0)
break;
- sc->rxcycles--;
+ sc->bce_rxcycles--;
}
#endif
@@ -4974,6 +4974,10 @@ bce_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
break;
}
+#ifdef DEVICE_POLLING
+bce_ioctl_exit:
+#endif
+
DBPRINT(sc, BCE_VERBOSE_RESET, "Exiting %s()\n", __FUNCTION__);
return(error);
OpenPOWER on IntegriCloud