Re: [PATCH net] net: stmmac: avoid duplicate XSK TX completions

From: patchwork-bot+netdevbpf

Date: Tue Oct 20 2026 - 07:33:36 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Tue, 13 Oct 2026 14:35:42 -0600 you wrote:
> stmmac_tx_clean() reports completed AF_XDP TX descriptors through
> xsk_tx_completed(), but leaves their buffer type as STMMAC_TXBUF_T_XSK_TX.
> The slots retain that type until they are reused for another buffer type.
>
> On interface close or XDP teardown, dma_free_tx_skbufs() walks the entire
> TX ring, not just the dirty_tx..cur_tx range. stmmac_free_tx_buffer()
> counts the stale XSK_TX slots again, causing xsk_tx_completed() to advance
> the completion-ring producer for buffers that have already been returned.
> This publishes completion entries without matching outstanding TX
> reservations and corrupts completion accounting for a socket which stays
> bound across the teardown.
>
> [...]

Here is the summary with links:
- [net] net: stmmac: avoid duplicate XSK TX completions
https://git.kernel.org/netdev/net/c/daac93975b8f

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html