]> www.infradead.org Git - users/willy/linux.git/commitdiff
Merge branch 'stmmac-stop-silently-dropping-bad-checksum-packets'
authorJakub Kicinski <kuba@kernel.org>
Wed, 20 Aug 2025 01:33:09 +0000 (18:33 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 20 Aug 2025 01:33:09 +0000 (18:33 -0700)
Oleksij Rempel says:

====================
stmmac: stop silently dropping bad checksum packets

this series reworks how stmmac handles receive checksum offload
(CoE) errors on dwmac4.

At present, when CoE is enabled, the hardware silently discards any
frame that fails checksum validation. These packets never reach the
driver and are not accounted in the generic drop statistics. They are
only visible in the stmmac-specific counters as "payload error" or
"header error" packets, which makes it harder to debug or monitor
network issues.

Following discussion [1], the driver is reworked to propagate checksum
error information up to the stack. With these changes, CoE stays
enabled, but frames that fail hardware validation are no longer dropped
in hardware. Instead, the driver marks them with CHECKSUM_NONE so the
network stack can validate, drop, and properly account them in the
standard drop statistics.

[1] https://lore.kernel.org/all/20250625132117.1b3264e8@kernel.org/
====================

Link: https://patch.msgid.link/20250818090217.2789521-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge