PERFORCE change 109467 for review
Sam Leffler
sam at FreeBSD.org
Tue Nov 7 19:15:50 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=109467
Change 109467 by sam at 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) {
More information about the p4-projects
mailing list