Page MenuHomeFreeBSD

if_dwc: avoid duplicate packet counts
ClosedPublic

Authored by mhorne on Jun 15 2022, 7:50 PM.
Tags
None
Referenced Files
F168623467: D35499.id106964.diff
Sat, Aug 29, 7:40 AM
F168563609: D35499.diff
Sat, Aug 29, 1:18 AM
Unknown Object (File)
Wed, Aug 26, 10:25 AM
Unknown Object (File)
Tue, Aug 25, 8:42 PM
Unknown Object (File)
Tue, Aug 25, 8:40 PM
Unknown Object (File)
Tue, Aug 25, 10:53 AM
Unknown Object (File)
Mon, Aug 24, 9:03 AM
Unknown Object (File)
Sun, Aug 23, 11:08 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