Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by memoriaru
Mon, 09 Nov 2026 08:02
[PATCH net v2 0/2] net: sparx5/lan969x: fix RX ring stall on frames from inactive ports
Author: memoriaru
Date: Mon, 09 Nov 2026 08:02
Date: Mon, 09 Nov 2026 08:02
39 lines
10932 bytes
10932 bytes
From: Zhang Hewei <memoriaru@foxmail.com> The FDMA RX path on both sparx5 and its lan969x sibling stalls the RX ring forever when the hardware delivers a frame whose source port does not map to an active netdev: the inactive-port error branch in both drivers leaves the FDMA software cursor untouched, while the DCB keeps its hardware DONE bit - so every following NAPI poll picks the same DCB again and RX traffic stalls on all ports until the module is reloaded. sparx5_xtr_flush() only drains the QS_XTR hardware FIFO and does not clear the stall. Patch 1 treats a bogus frame on sparx5 as consumed (free the skb, clear the array slot, return true). Patch 2 splits the two NULL meanings on lan969x (allocation failure keeps its retry-later break; a bogus frame returns ERR_PTR(-EINVAL)) and advances past it in the poll loop. v2: hand-assembled v1 mails were mangled (duplicated newlines, missing diff headers, broken threading) and used a non-answerable From/SoB address - apologies. Regenerated with git format-patch; same two fixes, no functional change. v1 lore link: https://lore.kernel.org/netdev/20261108184541.74618-1-memoriaru@foxmail.com/ Found by code inspection; the stall needs the hardware to emit a frame with an invalid source port, which cannot be triggered without hardware. Review from someone with access to sparx5/lan969x systems would be appreciated. Zhang Hewei (2): net: sparx5: fix RX ring stall on frames from inactive ports net: lan969x: fix RX ring stall on frames from inactive ports .../microchip/sparx5/lan969x/lan969x_fdma.c | 24 +++++++++++++++++-- .../ethernet/microchip/sparx5/sparx5_fdma.c | 9 ++++++- 2 files changed, 30 insertions(+), 3 deletions(-) -- 2.39.5 (Apple Git-154)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads