[PATCH net-next v4 0/5] net: stmmac: support ethtool rx-all on sun8i
James Hilliard
james.hilliard1 at gmail.com
Thu Dec 3 18:37:43 PST 2026
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.
Patch 1 supersedes the standalone sun8i RX checksum-delivery fix [0].
The series also serializes changes to the register shared by RX DMA,
pause thresholds and runt forwarding before adding the rx-all switch.
[0] https://lore.kernel.org/r/20261125-submit-sun8i-rx-features-v1-v3-1-79273f18a028@gmail.com/
Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
---
Changes in v4:
- Serialize live RX_CTL1 updates, including phylink pause configuration
and RX DMA start/stop, before using the register for rx-all. Sashiko
reported the ethtool/phylink race [1]; Codex helped implement and
check the locking change.
- Record the H616 checksum status encoding and the two stmmac checksum
fixes needed for backports in patch 1.
- Link to v3: https://patch.msgid.link/20261201-submit-sun8i-rxall-v1-v3-0-01aa6280e6ae@gmail.com
[1] https://lore.kernel.org/r/sashiko-outbox-247233@kernel.org/
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 (5):
net: stmmac: dwmac-sun8i: deliver RX checksum errors to the stack
net: stmmac: dwmac-sun8i: align EMAC_RX_MD with tabs
net: stmmac: dwmac-sun8i: serialize RX_CTL1 updates
net: stmmac: add common RXALL handling
net: stmmac: dwmac-sun8i: support ethtool rx-all
drivers/net/ethernet/stmicro/stmmac/common.h | 10 +-
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 185 +++++++++++++++------
.../net/ethernet/stmicro/stmmac/dwmac1000_core.c | 4 +-
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 4 +-
.../net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 4 +-
drivers/net/ethernet/stmicro/stmmac/hwif.c | 2 +-
drivers/net/ethernet/stmicro/stmmac/hwif.h | 4 +-
drivers/net/ethernet/stmicro/stmmac/stmmac_fpe.c | 4 +-
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 59 +++++--
9 files changed, 191 insertions(+), 85 deletions(-)
---
base-commit: c1165beb053a652299b1503b2dd7674ced0b1596
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 at gmail.com>
More information about the linux-arm-kernel
mailing list