Article View: linux.kernel.netdev
Article #14354Re: [PATCH net-next v2] veth: set the real number of queues before registering the devices
From: patchwork-bot+netdevbpf
Date: Wed, 11 Nov 2026 01:10
Date: Wed, 11 Nov 2026 01:10
31 lines
9180 bytes
9180 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
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
Technical Details
Message-ID:
<179435941067.149955.5846747164826420289.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360805-linux-kernel-netdev=dewy.ruReferences:
<20261109-bug-veth-init-queues-before-register-v2-1-d7dea61811da@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360805-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2] veth: set the real number of queues before registering the devices Date: Wed, 11 Nov 2026 01:10:10 +0000 Organization: Usenet Network Message-ID: <179435941067.149955.5846747164826420289.git-patchwork-notify@kernel.org> References: <20261109-bug-veth-init-queues-before-register-v2-1-d7dea61811da@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="747893"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:B8BqgYvmZEWlXHbOGLHAmNu0qKw= sha256:vpKoJZz63OAFBJ92nZzBFtSmbVIsu59Ie+eAyJax2zk= sha1:WBj9A5Ztg2bQzE4PFOq6tWFhZJc= sha256:eajI/9JtIUvlCAwzKZyctzHjXTxu7KiJOIoo/AiiX8c= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 75375113DF8; Wed, 11 Nov 2026 04:14:38 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QrZBfrpkuEFt; Wed, 11 Nov 2026 04:14:35 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-360805-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id B7CC4113DF3; Wed, 11 Nov 2026 04:14:26 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 461B5A6518; Wed, 11 Nov 2026 01:10:21 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794359413; b=ZiKwkb/iVSjWEU4vj7XaFSxjPpPn07BVBgKkJjwwlA1XUEiBEBiaNIKrWAwEHxXjE5O1 efHEla647Z1QIz/SQT4Tdy2nSOr5RPBJBu7UgH5NoXIjmYhMvwo84KpQTJ3dWAcTVjevi AKWu66Lq8h/km2EgB2ZRu8LTN1kVL31I4GpiV9oPKUSpD8kjhN884Q+P0JkDXvF5kg329 MwvIwqUdSjIFVyEQqg9SDdLTRXF2Sp04sysQSDsalQVEDIj2Qi9Y24qAX12FVjvoRVuHY fIPc8fVMEbwpjmJSlz3qa0tJMBqhgc4MEDkaHBjgllEGHRHW7ssmLEA4QnGx9iIhy1g== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794359413; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=y5U+3BdFRS613cFNSPQ5XyLDNgEiHnZFIQoDUCMMiL8=; b=bUiealRWE01okrsaEZoP1k+9ybTr2xssZjIPZ9d3NyRTGM92+SpwwH/mb9Jkn90daKL8 vVii2TsfGKkEl0Y/npMGejyahsSj26I0pi9b4sXLo32p6xH36xDen+acS9AYAmEPOIwbN kGrtBHLO8JH21nHXEPxn1wlGtUrTXL0FuQ1Vjnnu4FXzO2au7hT1qcawMvPVpJMnt/Ier uxzHEY1Q8U282VKRJKHTpVV1r9sHkx5vYdo7MEFoeFoDaunSS82pbEXkRvilekshzdgIl RC5y5A5HmZ1MigKGurax6Vh/Cr7tSopHJ+4pPoDnFsXY9XGTHOFD3kH6aG/vNRyJ6Zw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SxTkVZnf; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42CF560A2601; Wed, 11 Nov 2026 01:10:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SxTkVZnf X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794359412; b=uq1M57g+rYpdK7eTaUMAbEylt3MnjcS2LKObj/9ofdprnn41LpTOOiZiGWbVFpaWZTbe 9j3Sr2rTwT4S94zUL7N1eHc6gz4BF9tIyz8I8Pi/rtjArPfF/xg9fkfpgUdFUjJmBpu76 R55y/tLcMffZcVjGQcqQVtrXFb2z61RwMonZpf0JUb3RDfclZHnT4M8Ayt516rx8ymDTs 2X/iAfY7diCvqCy1fCwzLObHMy5R7UORgccFZkSzmAluF6wi1FMl31BIS/2lTg1iw0z+4 pXTeSUAdz03YSH6TzgMhI9oU8hdLPXHfqQChBOdRVxdoP0OdaEPCFE1R63Mm7Va4/eA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794359412; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=y5U+3BdFRS613cFNSPQ5XyLDNgEiHnZFIQoDUCMMiL8=; b=pzPeyU+cUJ39P56ikeHhlOrva9RvZTe+6555L5diDjOR2vKvSRAkTntPk86Hoi52adWu Ztcy9xlziQeQ8CpqKY7bkGrV3LTQ4J3hXyBWq/G+Lx52lsZS2bZJ/kGkzilFYLqWIMV1W Ziu25hXLhp2YjWtT4fxCjeUBlHk+xuSUxuA3qOM6IZ81yMA3zwpdAUu9nWH6ourA3Q1ht OQjxghbUG2MJ+JAshu7KcSWDqGHPO0r3S4A9WnpGtF7WPk5ZsyNJJIFgY3nOwLlry555q x0oSsOsiTrgUIkamZKnhfQe8e8WUPast3XTPRs9wsUc5gJYFouHvszYT9so87kUpgUQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SxTkVZnf; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FAA1606A339; Wed, 11 Nov 2026 01:10:12 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2AA8F1F00A04; Wed, 11 Nov 2026 01:10:12 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794359412; bh=y5U+3BdFRS613cFNSPQ5XyLDNgEiHnZFIQoDUCMMiL8=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=SxTkVZnf8mATdeqig6IF2Ni09YI1vDO6Q3MPl3cZB9hD+aSePhWK533y4lR7JUAxz OrQ2Zyoj0Xb818Ivsn92Nxr2U+h+LHjbo2NU2Xq5piKx7iEBqmFbEy7qBjZfRa8jUj Eecfb07FK+2R9rcCi6pHCfQYWYStQyV+TONFNE5smcDXKFt/L3VGmA0tyPcPwiR+Eo HpsLklLlXhdAsnIks+Mym4blb1Q+YqXeOJDD8bY8UzLaVxDXNDLPNxVQCYU+WFn4T8 FwTbjQuN6MsIwHTFr5eWAq2K+9i/YGC70rp4W5ib903rVLVwLR+qTdF1nPfTh4v/Vh vF3c3VXTLJy/A== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 20F95380CFE6; Wed, 11 Nov 2026 01:10:12 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261109-bug-veth-init-queues-before-register-v2-1-d7dea61811da@gmail.com> X-Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, wang.zhan@smartx.com