HomeFreeBSD

if_dwc: avoid duplicate packet counts

Description

if_dwc: avoid duplicate packet counts

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>
Reviewed by: manu
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35499

Details

Provenance
mhorneAuthored on Jun 21 2022, 1:24 PM
Reviewer
manu
Differential Revision
D35499: if_dwc: avoid duplicate packet counts
Parents
rG35c9edab4169: if_dwc: enable RX checksum offload feature
Branches
Unknown
Tags
Unknown