mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:11:20 +08:00
if_dwc: Fix IFCOUNTER_IPACKETS statistics
Input packets are counted in dwc_harvest_stats() as well.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user