netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v1 0/3] stmmac: stop silently dropping bad checksum packets
@ 2025-08-18  9:02 Oleksij Rempel
  2025-08-18  9:02 ` [PATCH net-next v1 1/3] net: stmmac: Correctly handle Rx checksum offload errors Oleksij Rempel
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Oleksij Rempel @ 2025-08-18  9:02 UTC (permalink / raw)
  To: Andrew Lunn, Alexandre Torgue, Jose Abreu, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Maxime Coquelin
  Cc: Oleksij Rempel, kernel, linux-kernel, netdev, Simon Horman,
	Russell King (Oracle), Søren Andersen

Hi all,

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/

Oleksij Rempel (3):
  net: stmmac: Correctly handle Rx checksum offload errors
  net: stmmac: dwmac4: report Rx checksum errors in status
  net: stmmac: dwmac4: stop hardware from dropping checksum-error
    packets

 drivers/net/ethernet/stmicro/stmmac/dwmac4.h       | 1 +
 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c | 8 ++++++--
 drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c   | 2 ++
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  | 3 ++-
 4 files changed, 11 insertions(+), 3 deletions(-)

--
2.39.5


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-08-20  7:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18  9:02 [PATCH net-next v1 0/3] stmmac: stop silently dropping bad checksum packets Oleksij Rempel
2025-08-18  9:02 ` [PATCH net-next v1 1/3] net: stmmac: Correctly handle Rx checksum offload errors Oleksij Rempel
2025-08-18  9:02 ` [PATCH net-next v1 2/3] net: stmmac: dwmac4: report Rx checksum errors in status Oleksij Rempel
2025-08-18  9:02 ` [PATCH net-next v1 3/3] net: stmmac: dwmac4: stop hardware from dropping checksum-error packets Oleksij Rempel
2025-08-20  3:11 ` [PATCH net-next v1 0/3] stmmac: stop silently dropping bad checksum packets patchwork-bot+netdevbpf
2025-08-20  7:07 ` Russell King (Oracle)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).