[rtems-libbsd commit] if_dwc: Fix IFCOUNTER_IPACKETS statistics

Sebastian Huber sebh at rtems.org
Tue Jan 10 10:06:12 UTC 2017


Module:    rtems-libbsd
Branch:    master
Commit:    6cd057d977b56a9b9b0b1992d2c4a55d6f0e25e1
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=6cd057d977b56a9b9b0b1992d2c4a55d6f0e25e1

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Jan 10 08:52:14 2017 +0100

if_dwc: Fix IFCOUNTER_IPACKETS statistics

Input packets are counted in dwc_harvest_stats() as well.

---

 freebsd/sys/dev/dwc/if_dwc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/freebsd/sys/dev/dwc/if_dwc.c b/freebsd/sys/dev/dwc/if_dwc.c
index 0d0d669..159bba3 100644
--- a/freebsd/sys/dev/dwc/if_dwc.c
+++ b/freebsd/sys/dev/dwc/if_dwc.c
@@ -772,7 +772,6 @@ dwc_rxfinish_locked(struct dwc_softc *sc)
 			m->m_pkthdr.rcvif = ifp;
 			m->m_pkthdr.len = len;
 			m->m_len = len;
-			if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
 
 			/* Remove trailing FCS */
 			m_adj(m, -ETHER_CRC_LEN);




More information about the vc mailing list