net: bcmgenet: write the Tx producer index when a frame is dropped
Subsystems (3)
Nicolai Buchwitz
maintainerPATCH 1/1 net: bcmgenet: write the Tx producer index when a frame is dropped
With xmit_more, queued frames reach the hardware only when a later frame writes TDMA_PROD_INDEX. If that frame is dropped, the write is skipped and the queued frames wait for the next transmit on that ring, which may never come.
Write the producer index on the drop paths too.
---
Another bug flagged by sashiko over the past few months.
Writing the producer index on every exit is the correct way to handle this, but I could not reproduce a stall. Thus net-next it is.
--- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/broadcom/genet/bcmgenet.c +2 -2
@@ -2254,11 +2254,11 @@ static netdev_tx_t bcmgenet_xmit(struct sk_buff *skb, struct net_device *dev)if (ring->free_bds <= ring->stop_thld)netif_tx_stop_queue (txq); +out: +/* A dropped frame can end an xmit_more batch */ if (!netdev_xmit_more () ||netif_xmit_stopped (txq)) -/* Packets are ready, update producer index */ bcmgenet_tdma_ring_writel (priv, ring->index, ring->prod_index,TDMA_PROD_INDEX ); -out:spin_unlock (&ring->lock);return ret;
---
base-commit: d6816d9a93b66a12bf01e10037e377f3333ad6cc
change-id: 20261118-nb-genet-xmit-drop-kick-nn-89a5cfa585fe
Best regards,
Signature · 1 line
Nicolai Buchwitz <[email protected]>
[email protected]
AI reviewThis is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:
Hi!
This is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:
- What hardware the change was tested on. For driver fixes please mention the device (and if relevant firmware version) used for testing, or say that the change was not tested on real hardware.
Please do not repost the series just to address the above. Instead, reply to this email with the missing information, so that reviewers can take it into account.
*IMPORTANT*: If you do repost (for other reasons) - please include the relevant info in the cover letter or commit messages.
Signature · 2 lines
The evaluation is done by an LLM so it may be wrong, if you think that is the case please reply and explain.
Nicolai Buchwitz
maintainerQuoted 9 lines · On 18.11.2026 21:43, [email protected] wrote:
Hi!
This is an automated message. This series looks like a fix, but its commit messages seem to be missing some information:
- What hardware the change was tested on. For driver fixes please mention the device (and if relevant firmware version) used for testing, or say that the change was not tested on real hardware.
Quoted 6 lines
Please do not repost the series just to address the above. Instead, reply to this email with the missing information, so that reviewers can take it into account.
*IMPORTANT*: If you do repost (for other reasons) - please include the relevant info in the cover letter or commit messages.
As usual this has been tested on Raspberry Pi CM4 (bcm2711)
Quoted 8 lines · Nicolai Buchwitz
With
xmit_more, queued frames reach the hardware only when a later frame writesTDMA_PROD_INDEX. If that frame is dropped, the write is skipped and the queued frames wait for the next transmit on that ring, which may never come.Write the producer index on the drop paths too.
Signed-off-by Nicolai Buchwitz <[email protected]>
Signature · 1 line
Florian
Quoted 7 lines · Florian Fainelli
Quoted 5 lines · Nicolai Buchwitz
With
xmit_more, queued frames reach the hardware only when a later frame writesTDMA_PROD_INDEX. If that frame is dropped, the write is skipped and the queued frames wait for the next transmit on that ring, which may never come.
Quoted 5 lines
Quoted 3 lines
Write the producer index on the drop paths too.
Signed-off-by Nicolai Buchwitz <[email protected]>Reviewed-by Florian Fainelli <[email protected]>
I think this is a net candidate, even if you could not reproduce the bug.
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Wed, 18 Nov 2026 21:40:39 +0100 you wrote:
With
xmit_more, queued frames reach the hardware only when a later frame writesTDMA_PROD_INDEX. If that frame is dropped, the write is skipped and the queued frames wait for the next transmit on that ring, which may never come.Write the producer index on the drop paths too.
[...]
Here is the summary with links:
- [net-next] net: bcmgenet: write the Tx producer index when a frame is dropped
https://git.kernel.org/netdev/net-next/c/16cc4936fb8e
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html