freebsd-dev/sys/dev/dwc
Mitchell Horne 9718759043 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
2022-06-23 15:15:10 -03:00
..
if_dwc_if.m Improve Rockchip's integration of if_dwc 2020-08-10 19:37:06 +00:00
if_dwc.c if_dwc: avoid duplicate packet counts 2022-06-23 15:15:10 -03:00
if_dwc.h if_dwc: enable RX checksum offload feature 2022-06-23 15:15:10 -03:00
if_dwcvar.h [if_dwc] add support for multi-descriptor packets in TX path 2020-12-23 12:29:29 -08:00