Page MenuHomeFreeBSD

if_dwc: avoid duplicate packet counts
ClosedPublic

Authored by mhorne on Jun 15 2022, 7:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 30, 7:10 AM
Unknown Object (File)
Tue, Apr 30, 7:10 AM
Unknown Object (File)
Tue, Apr 30, 7:10 AM
Unknown Object (File)
Mon, Apr 29, 11:44 PM
Unknown Object (File)
Apr 2 2024, 4:48 PM
Unknown Object (File)
Feb 4 2024, 12:28 AM
Unknown Object (File)
Dec 20 2023, 3:09 AM
Unknown Object (File)
Dec 3 2023, 12:51 AM
Subscribers

Details

Summary

We already increment the unicast IPACKETS and OPACKETS counters in the
rx/tx paths, respectively. Multicast packets are counted in the generic
ethernet code. Therefore, we shouldn't increment these counters in
dwc_harvest_stats().

Drop the early return from dwc_rxfinish_one() so that we still count
received packets with e.g. a checksum error.

PR: 263817
Reported by: Jiahao LI <jiahali@blackberry.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable