Messages in this thread | | | Subject | Re: [PATCH v2] net: macb: Increment rx bd head after allocating skb and buffer | From | patchwork-bot+netdevbpf@kernel ... | Date | Sat, 14 May 2022 00:20:12 +0000 |
| |
Hello:
This patch was applied to netdev/net.git (master) by Jakub Kicinski <kuba@kernel.org>:
On Thu, 12 May 2022 22:49:00 +0530 you wrote: > In gem_rx_refill rx_prepared_head is incremented at the beginning of > the while loop preparing the skb and data buffers. If the skb or data > buffer allocation fails, this BD will be unusable BDs until the head > loops back to the same BD (and obviously buffer allocation succeeds). > In the unlikely event that there's a string of allocation failures, > there will be an equal number of unusable BDs and an inconsistent RX > BD chain. Hence increment the head at the end of the while loop to be > clean. > > [...]
Here is the summary with links: - [v2] net: macb: Increment rx bd head after allocating skb and buffer https://git.kernel.org/netdev/net/c/9500acc631db
You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
| |