Re: [PATCH net v2] net: pktgen: use a consistent flow count

From: patchwork-bot+netdevbpf

Date: Mon Aug 17 2026 - 16:02:07 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Wed, 12 Aug 2026 13:21:30 +0800 you wrote:
> pktgen_if_write() can update cflows while the packet generator thread is
> inside mod_cur_headers(). The latter first tests cflows, but f_pick() then
> reloads it when selecting a random flow.
>
> This allows the following interleaving:
>
> CPU 0 (kpktgend) CPU 1 (proc write)
> if (pkt_dev->cflows) // 10
> pkt_dev->cflows = 0
> get_random_u32_below(pkt_dev->cflows)
>
> [...]

Here is the summary with links:
- [net,v2] net: pktgen: use a consistent flow count
https://git.kernel.org/netdev/net-next/c/f98ca137c2dd

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