Article View: linux.kernel.netdev
Article #18509Re: [PATCH net-next 5/6] eth: bnxt_en: allocate fast path DMA rings on the queue's NUMA node
From: Björn Töpel
Date: Wed, 18 Nov 2026 12:39
Date: Wed, 18 Nov 2026 12:39
23 lines
8712 bytes
8712 bytes
Jakub Kicinski <kuba@kernel.org> writes: > Descriptor rings, completion rings, NQs and the TX push buffer are > accessed by the host in the fast path, and so is the SW state around > them, which we already allocate on the node of the CPU expected to > service the queue. The DMA memory itself comes from the device's node, > though, as that's what dma_alloc_coherent() always uses. > > Use dma_alloc_coherent_node() for the ring pages and the TX push buffer. > Pass the queue's node for completion rings and NQs as well, they used > NUMA_NO_NODE so far since @nid only affected the SW rings. > > Ring page tables are only read by the device, keep them on the device's > node. > > Note that queue restart only reallocates the Rx descriptor rings. > Completion rings, NQs and Tx rings will follow IRQ affinity changes > only on the next full reconfiguration. > > Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Björn Töpel <bjorn@kernel.org>
Technical Details
Message-ID:
<87ecci8gah.fsf@all.your.base.are.belong.to.us>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366117-linux-kernel-netdev=dewy.ruReferences:
<20261118023905.3050661-1-kuba@kernel.org> <20261118023905.3050661-6-kuba@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366117-linux-kernel-netdev=dewy.ru From: bjorn@kernel.org (Björn Töpel) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next 5/6] eth: bnxt_en: allocate fast path DMA rings on the queue's NUMA node Date: Wed, 18 Nov 2026 13:39:34 +0100 Organization: Usenet Network Message-ID: <87ecci8gah.fsf@all.your.base.are.belong.to.us> References: <20261118023905.3050661-1-kuba@kernel.org> <20261118023905.3050661-6-kuba@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="2593755"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:r9bPMxYpB0pYd2iH+QDtiz9/bLc= sha256:fRCsyZj2t7rk4akXQ9sIewnAaCULKkKORAQ/3V1Tq5Y= sha1:w5n4+kT9u5NMBe7IJvJPsKUE/rU= sha256:IZ1cj6TpH9RBitQr47aK1670PrOn94aLmwBmJKz+dxo= 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 A74D5115295; Wed, 18 Nov 2026 15:39:54 +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 mfh7h8DAs3p8; Wed, 18 Nov 2026 15:39:51 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-366117-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id A36C711528D; Wed, 18 Nov 2026 15:39:42 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 73AE131B8B; Wed, 18 Nov 2026 12:39:40 +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=1795005578; b=rzsjhYjrD6l7e/QFVlUNm3Wv4Z7H8KYe9Vt5PZnbNz4k8Oe6Xidt94o9IVvl93FvhoXr lQgm14a4QSa1pR7HLp+faWzTVcZf81F7bn+0KjPqFhQtAz5hwJK5veW6pvrqnujrOqMZJ Xk63awetqorZVpLNBNutZ5OKiNiENaDkFK6A2dA5Qt2GBvNEnrL/mZqlP7MpsBg2ukAcl VnRYmlQ6vLC3CjPLclMlOFLb+KTe4MGNhxhfJUMP8Pf4LTCe0IDGMms1YtgmyvR4rC/3o RWWH7w7OCYRA7iKmTTq8lD26q5V9JUHeiXwi3jGAwQjwVgm1+lK7TtgPr3vfTuXlfrg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795005578; h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject: In-Reply-To:References:Date:Message-ID:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=5tNw7x/gC+LifFujyfN8HXFWsAwMZ1bVvoHJM9rey/c=; b=5jNv4L5PyrOHnDTRhORAamMphMC2w26VAgtp1jOPT1uluzG2hHqZRJBGJBES807KR3pZ uRZT3n6eLprFX9mqP2WC7Qfdi5GA+1xqLBNwBANhDh7JFvBl0SRCgjhezBOsePSG7FENU aUAR2Ag4aFc+qfCt/oMr12cTRGZxRx/lSUouXtVufWYCAtpuI4lORrGwX/9gaFGpjHQOa 2XoRAGqakmGlt8CGGBqrFa9kvRfUya6fD7zJeJrPp4DcCQ5mOlVjNQAXsJZbPgoAW4+7M ALXgKYQD05YX1JN8sG9EZsKsFRVChZZvh7UXp/ZMlUJmoNWesgN9P7t1zXAGaFsdxiw== 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="AKzXHev/"; 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 6D07E606A330; Wed, 18 Nov 2026 12:39:38 +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=AKzXHev/ 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=1795005577; b=vlT4U1CZWzNu6W4qG8e2bbjrBFZ6kUzm4uNjeDrNfJCZc0q1y3XXejJwjouu3dJ4UBRm 9J/0QvI+vS8YFuG26oLyAeZlREW0lJHpNPNLiq6v/IhKdYkTm5+blTOXMzB3JRt6SQA+t LkW8Bct8iviwjYS+3nVNBBG4Q4jyF6vwvoe/ResbJl0wMHDqlzVEayU3leyqSzSFpEz70 al5JVayCRFaInhubd41g3oglE5uPVguaAJw8vrzpB2NPcZyBy+t2218+X3nTELUyoX7Yq CfKL1NejOgpFIJLGlia7GujwwtsOJp1Z5qv//+Qa7TG/q6Hwd4T1KdXUHPaT3cRB4Cg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795005577; h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References: Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=5tNw7x/gC+LifFujyfN8HXFWsAwMZ1bVvoHJM9rey/c=; b=Hq5MeFpzS2JDIzOpNC5nAtJ/UnkjUMl+hJbuh6e4ZiEk+5omlQ7t1v7a7dq71YsHoFyJ DoV5DrfiI9onGTFGlEi8c7Jlf8LBz5S8dT/UBMD9gUZvlmjL0EjvQ+lrVL3tNvYTvEwIi sAm/j+ywEsgqIjt/KnBsEz7ngu1cILOlnZb1UaC3sWjwJicEnU9ZZtrRdonr+tDT+Grhx ojr86yGj6djfMaZWPo6FsWknwe9evrugsN584wibw1ZGEuchy0FuPHtg3dw7P6RnferH4 o9+N6N5/y46O3iRmwQ51my8hiLOcUycT+NQIPNXXRal/bXUxc4Xq/VdPlogWUm4/Tyg== 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="AKzXHev/"; 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 86E97606A31C for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 12:39:37 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB9431F000C4; Wed, 18 Nov 2026 12:39:36 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795005577; bh=5tNw7x/gC+LifFujyfN8HXFWsAwMZ1bVvoHJM9rey/c=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=AKzXHev/L3H3pJRiAQLkhwJpZVCii62U8+TZDgrNXq26o9x8mtfYqAZXp+qMuLmhA RylI5IByUwBtc8iXHUeRB4AouKnxgsyMB3dcexOWDd3d/tPd5oLhFdjx1VIrpwhQPa Y03tVdCevFzdKP7AWUgUxSJFEu+9xQtsm0nadx2zyBC8WEb87nsj+5lMJPu+5aMfBr t3DE1fWNgTe3aj5srjDteaNxxHSrKlKqPmY3oSGiNWlFCWAoO6H/37YqVA41yxk+IS v9XsDuWJcGl7qBEi1KWkf22jI1UPVd6JzM1d+tfekRVV4X8CkdVU3QNwmBvxiqZHvr tpgdkbRheEvzg== X-Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, pavan.chebbi@broadcom.com, Jakub Kicinski <kuba@kernel.org> X-In-Reply-To: <20261118023905.3050661-6-kuba@kernel.org> 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