Re: [PATCH net-next v2] veth: set the real number of queues before registering the devices
From: patchwork-bot+netdevbpf
Date: Tue Nov 10 2026 - 20:10:39 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Mon, 09 Nov 2026 00:38:37 -0500 you wrote:
> Since commit 9d3684c24a52 ("veth: create by default nr_possible_cpus
> queues"), each veth device is allocated with one rx and one tx queue
> per possible CPU, and veth_newlink() reduces the real number of queues
> to one unless the user asked for a number.
>
> Both devices are already registered at that point, so
> netif_set_real_num_tx_queues() and netif_set_real_num_rx_queues()
> remove the sysfs objects of every extra queue that register_netdevice()
> has just created, each one emitting an add and a remove uevent, and the
> tx side also waits for an expedited RCU grace period. This happens with
> RTNL held, twice per pair, and grows with the number of possible CPUs:
> with 240 of them a veth pair emits about 1900 uevents, and udev takes
> minutes to work through those of a few hundred pairs.
>
> [...]
Here is the summary with links:
- [net-next,v2] veth: set the real number of queues before registering the devices
https://git.kernel.org/netdev/net-next/c/099e433a8bf4
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html