Re: [PATCH net] NTB: ntb_netdev: Preserve RX queue depth on allocation failure
From: patchwork-bot+netdevbpf
Date: Tue Aug 11 2026 - 05:21:01 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Thu, 6 Aug 2026 12:25:37 +0900 you wrote:
> ntb_netdev_rx_handler() hands the received skb to the network stack
> before allocating its replacement. If the allocation fails, nothing is
> reposted. Every failure therefore takes one buffer out of the RX queue
> while the interface remains up, and enough failures eventually stall
> reception.
>
> A retry path could refill the queue later, but ntb_netdev has none.
> Allocate the replacement first instead. If that fails, drop the packet
> and repost the same skb. This keeps the queue full and lets packet
> delivery resume as soon as memory is available again.
>
> [...]
Here is the summary with links:
- [net] NTB: ntb_netdev: Preserve RX queue depth on allocation failure
https://git.kernel.org/netdev/net/c/d2121faf133a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html