ARM Sunxi Platform Development
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/4] net: stmmac: support ethtool rx-all on sun8i
@ 2026-12-02  6:25 James Hilliard
  2026-12-02  6:25 ` [PATCH net-next v3 1/4] net: stmmac: dwmac-sun8i: deliver RX checksum errors to the stack James Hilliard
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: James Hilliard @ 2026-12-02  6:25 UTC (permalink / raw)
  To: netdev, Maxime Chevallier, Andrew Lunn, David S. Miller,
	Eric Dumazet, Paolo Abeni, Maxime Coquelin, Alexandre Torgue,
	Chen-Yu Tsai, Jernej Skrabec, Samuel Holland, LABBE Corentin
  Cc: Jakub Kicinski, Oleksij Rempel, linux-arm-kernel, linux-sunxi,
	James Hilliard

On H616 the PHY can count a bad-FCS frame even when it does not appear
in a packet capture. Enabling rx-all lets a capture see the complete
errored frames the MAC can forward. On this hardware, a 64-byte frame
with a bad FCS reaches DMA, but a 63-byte one does not, even with runt
forwarding enabled. Both lengths include the FCS.

The sun8i RX checksum-delivery fix previously posted for net [0] is
carried as patch 1 here, superseding that standalone submission. The
remaining patches add common stmmac RXALL handling and enable it for
sun8i. The fix and feature were split into net and net-next submissions
following Maxime's review [1], but the posted fix cannot apply as a
prerequisite on current net-next, as reported for v2 [2].

[0] https://lore.kernel.org/r/20261125-submit-sun8i-rx-features-v1-v3-1-79273f18a028@gmail.com/
[1] https://lore.kernel.org/r/a91278be-9c14-4769-81f1-38497c38c47b@bootlin.com/
[2] https://lore.kernel.org/r/willemb.218976a7774bf@google.com/

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>

---
Changes in v3:
- Carry the checksum-delivery fix as patch 1 against net-next, superseding
  its separate net submission and removing the external prerequisite.
- Rebase onto net-next at 0a837a30e55b, following Willem's review.
- Link to v2: https://patch.msgid.link/20261125-submit-sun8i-rxall-v1-v2-0-4de03fbde087@gmail.com

Changes in v2:
- Drop the RX_CTL1 lock and leave DMA start, stop and mode setup unchanged.
- Align the EMAC_RX_MD definition in a separate patch, as Andrew requested.
- Apply rx-all alongside the other receive filters, independently of RX checksum reporting.
- Link to v1: https://patch.msgid.link/20261122-submit-sun8i-rxall-v1-v1-0-607789772c56@gmail.com

---
James Hilliard (4):
      net: stmmac: dwmac-sun8i: deliver RX checksum errors to the stack
      net: stmmac: dwmac-sun8i: align EMAC_RX_MD with tabs
      net: stmmac: add common RXALL handling
      net: stmmac: dwmac-sun8i: support ethtool rx-all

 drivers/net/ethernet/stmicro/stmmac/common.h      |   4 +
 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 115 +++++++++++++++++++---
 drivers/net/ethernet/stmicro/stmmac/hwif.h        |   4 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c |  59 +++++++----
 4 files changed, 150 insertions(+), 32 deletions(-)
---
base-commit: 0a837a30e55bbea2afb01cf0b3ec0c1d789a73ad
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git main
change-id: 20261122-submit-sun8i-rxall-v1-2666ccf2a020

Best regards,
--  
James Hilliard <james.hilliard1@gmail.com>


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

end of thread, other threads:[~2026-12-03  7:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02  6:25 [PATCH net-next v3 0/4] net: stmmac: support ethtool rx-all on sun8i James Hilliard
2026-12-02  6:25 ` [PATCH net-next v3 1/4] net: stmmac: dwmac-sun8i: deliver RX checksum errors to the stack James Hilliard
2026-12-03  7:28   ` netdev-bot+sashiko
2026-12-02  6:25 ` [PATCH net-next v3 2/4] net: stmmac: dwmac-sun8i: align EMAC_RX_MD with tabs James Hilliard
2026-12-02  6:25 ` [PATCH net-next v3 3/4] net: stmmac: add common RXALL handling James Hilliard
2026-12-03  7:28   ` netdev-bot+sashiko
2026-12-02  6:25 ` [PATCH net-next v3 4/4] net: stmmac: dwmac-sun8i: support ethtool rx-all James Hilliard
2026-12-03  6:29   ` sashiko-bot
2026-12-03  7:28   ` netdev-bot+sashiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox