Re: [PATCH v2] gve: fix the wrong AdminQ buffer queue index check

From: patchwork-bot+netdevbpf
Date: Fri Jan 28 2022 - 10:10:19 EST


Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Fri, 28 Jan 2022 18:47:14 +0800 you wrote:
> The 'tail' and 'head' are 'unsigned int' type free-running count, when
> 'head' is overflow, the 'int i (= tail) < u32 head' will be false:
>
> Only '- loop 0: idx = 63' result is shown, so it needs to use 'int' type
> to compare, it can handle the overflow correctly.
>
> typedef uint32_t u32;
>
> [...]

Here is the summary with links:
- [v2] gve: fix the wrong AdminQ buffer queue index check
https://git.kernel.org/netdev/net/c/1f84a9450d75

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