summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-10 08:52:14 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-10 09:53:33 +0100
commit6cd057d977b56a9b9b0b1992d2c4a55d6f0e25e1 (patch)
treea4c87758fefe8dc8f4cc303772fcf60a4c41217b
parentif_dwc: Fix IFCOUNTER_OPACKETS statistics (diff)
downloadrtems-libbsd-6cd057d977b56a9b9b0b1992d2c4a55d6f0e25e1.tar.bz2
if_dwc: Fix IFCOUNTER_IPACKETS statistics
Input packets are counted in dwc_harvest_stats() as well.
-rw-r--r--freebsd/sys/dev/dwc/if_dwc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/freebsd/sys/dev/dwc/if_dwc.c b/freebsd/sys/dev/dwc/if_dwc.c
index 0d0d669d..159bba33 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);