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/2026…@gmail.com/
[1] https://lore.kernel.org/r/a912…@bootlin.com/
[2] https://lore.kernel.org/r/will…@google.com/
Signed-off-by: James Hilliard <jame…@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/2026…@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/2026…@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 <jame…@gmail.com>
[PATCH net-next v3 0/4] net: stmmac: support ethtool rx-all on sun8i
- From
- jame…@gmail.com (James Hilliard)
- Organization
- Usenet Network
- Message-ID
- <2026…@gmail.com>
- Date
- Newsgroups
- linux.kernel.netdev