Date: Tue, 7 Nov 2006 19:15:49 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 109467 for review Message-ID: <200611071915.kA7JFn7V026799@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=109467 Change 109467 by sam@sam_ebb on 2006/11/07 19:15:21 count packets and collisions Affected files ... .. //depot/projects/arm/src/sys/arm/xscale/ixp425/if_npe.c#10 edit Differences ... ==== //depot/projects/arm/src/sys/arm/xscale/ixp425/if_npe.c#10 (text+ko) ==== @@ -690,6 +690,9 @@ + be32toh(ns->RxOverrunDiscards) + be32toh(ns->RxUnderflowEntryDiscards) ; + ifp->if_collisions += be32toh(ns->dot3StatsSingleCollisionFrames) + + be32toh(ns->dot3StatsMultipleCollisionFrames) + ; /* schedule next poll */ callout_reset(&sc->tick_ch, hz, npe_tick, sc); @@ -746,6 +749,7 @@ npe->ix_m = NULL; npe->ix_next = sc->tx_free; sc->tx_free = npe; + ifp->if_opackets++; } /* * We're no longer busy, so clear the busy flag and call the @@ -836,6 +840,7 @@ mrx->m_pkthdr.rcvif = ifp; mrx->m_flags |= M_HASFCS; + ifp->if_ipackets++; ifp->if_input(ifp, mrx); if (npe_rxbuf_init(sc, npe, m) != 0) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611071915.kA7JFn7V026799>