svn commit: r252136 - stable/8/sys/dev/age
Mark Johnston
markj at FreeBSD.org
Mon Jun 24 01:05:52 UTC 2013
Author: markj
Date: Mon Jun 24 01:05:51 2013
New Revision: 252136
URL: http://svnweb.freebsd.org/changeset/base/252136
Log:
MFC r251872:
Be sure to actually decrement the "count" parameter for each processed
descriptor so that we return when the threshold has been reached.
Modified:
stable/8/sys/dev/age/if_age.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/dev/ (props changed)
stable/8/sys/dev/age/ (props changed)
Modified: stable/8/sys/dev/age/if_age.c
==============================================================================
--- stable/8/sys/dev/age/if_age.c Mon Jun 24 01:03:58 2013 (r252135)
+++ stable/8/sys/dev/age/if_age.c Mon Jun 24 01:05:51 2013 (r252136)
@@ -2478,7 +2478,7 @@ age_rxintr(struct age_softc *sc, int rr_
sc->age_cdata.age_rx_ring_map, BUS_DMASYNC_POSTWRITE);
for (prog = 0; rr_cons != rr_prod; prog++) {
- if (count <= 0)
+ if (count-- <= 0)
break;
rxrd = &sc->age_rdata.age_rr_ring[rr_cons];
nsegs = AGE_RX_NSEGS(le32toh(rxrd->index));
More information about the svn-src-stable-8
mailing list