]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
commit5c69e0b395c1ffb37fd6fbdbd428353fc0894005
tree7e4e05b25c770c0400937f3d34b8b726174c6af0
parent8beead2d155077e78a671c2986df88eb2696b159
parentfe4042797651215ca9acd83035122b5e940acf2e
Merge branch 'stmmac-stop-silently-dropping-bad-checksum-packets'

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>