summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDaniel Machon <daniel.machon@microchip.com>2026-11-16 10:56:04 +0100
committerJakub Kicinski <kuba@kernel.org>2026-11-17 18:52:05 -0800
commit81d2cf1c6d567260e3195d2ef049f44446a462a7 (patch)
treedc5120726a20cbe1ff70f300bc6303b6ca1ec729 /tools/perf/scripts/python
parent98382d41f92f048cf3cbb7af415f48a722b19ebc (diff)
net: sparx5: fix RX ring stall on frames from inactive ports
If the source port of a received frame does not map to a port with a netdev, sparx5_fdma_rx_get_frame() returns false without consuming the DB. The DB keeps its DONE bit, so every following poll picks the same DB and grows its skb with skb_put() again. This ends in skb_over_panic(), or in an RX stall if no more frames arrive. Drop the frame and return true, so that the DB is consumed like any other. Remove the extraction queue flush, as the FDMA has already extracted the frame, and ratelimit the error, as the source port comes from the hardware. Confirmed on Sparx5 (PCB135) with a kernel modified to give received frames an out-of-range source port, which made the board reset. The fix was tested the same way: only the bad frames are dropped. Fixes: 10615907e9b5 ("net: sparx5: switchdev: adding frame DMA functionality") Reported-by: Zhang Hewei <memoriaru@foxmail.com> Closes: https://lore.kernel.org/netdev/tencent_ACC296C1F221C304053BD0F1F4B0D2C2BA06@qq.com/ Signed-off-by: Daniel Machon <daniel.machon@microchip.com> Link: https://patch.msgid.link/20261116-sparx5-rx-inactive-port-v1-1-343d8bab58bb@microchip.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions