Skip to content

net: macb: two fixes for macb_tx_error_task()

Nicolai Buchwitz lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected] change-id 20261107-nb-macb-tx-error-task-net-e8a553b4d138

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: macb: credit unsent frames to BQL in macb_tx_error_task()drivers/net/ethernet/cadence/macb_main.c+6 -21 replyApplied
2/2net: macb: take tx_ptr_lock in macb_tx_error_task()drivers/net/ethernet/cadence/macb_main.c+4 -20 repliesApplied

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchThéo Lebrun
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/2] net: macb: two fixes for macb_tx_error_task()

Both pre-existing bugs were flagged during the clashiko review of my software FCS patch [1]. These are the promised follow-up patches.

Patch 1 credits the frames dropped on a TX error to BQL. Patch 2 takes tx_ptr_lock in the task, as macb_start_xmit() moves the same pointers under it.

Tested on a Raspberry Pi CM5 (RP1 GEM). The bugs are hard to reproduce and the error path never fired there, but they are worth fixing anyway.

[1] https://lore.kernel.org/netdev/[email protected]/

---
Nicolai Buchwitz (2):
net: macb: credit unsent frames to BQL in macb_tx_error_task()
net: macb: take tx_ptr_lock in macb_tx_error_task()

 drivers/net/ethernet/cadence/macb_main.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

---
base-commit: 30c71476d842b094651bd7712f6c8ee8716147d0
change-id: 20261107-nb-macb-tx-error-task-net-e8a553b4d138

Best regards,

Signature · 1 line
Nicolai Buchwitz <[email protected]>