Article View: linux.kernel.netdev
Article #18268[PATCH net-next 0/6] eth: bnxt_en: allocate memory on the right NUMA node
From: Jakub Kicinski
Date: Wed, 18 Nov 2026 02:38
Date: Wed, 18 Nov 2026 02:38
41 lines
9177 bytes
9177 bytes
Teach bnxt to allocate the memory touched by the fast path
on the NUMA node where NAPI is being serviced.
On modern systems the PCIe controller is part of the CPU.
On NUMA systems we get to pick which NUMA node the queue and NAPI
related memory will get allocated from. Allocating SW state on
the node where NAPI will run is just common sense.
For memory touched by both device and the CPU we need to pick
which side will pay the extra price (either device or CPU
will have to "reach" futher). This series allocates all state
and all descriptor rings on the NAPI CPU.
Testing a dual-IO-die AMD Venice CPU, where NIC is on node 1
and with NAPI+kperf pinned to node 0, this series gives:
placing page pools on the right node: -5.1% CPU load
placing page pools and completion rings: -8.9% CPU load
Moving SW state is in the noise in a tight-loop kperf banchmark
as the state fits in the cache, anyway.
This series was the motivation for cleaning up the DMA API
allocations with explicit NUMA node:
commit a0aa9ceca03f ("Merge tag 'dma_alloc_coherent_node' of git://git.kernel.org/pub/scm/linux/kernel/git/kuba/linux")
Jakub Kicinski (6):
eth: bnxt_en: order event data before setting the sp_event bit
eth: bnxt_en: follow explicitly set IRQ affinity when placing page
pool
eth: bnxt_en: allocate per-queue SW state on the queue's NUMA node
eth: bnxt_en: explicitly keep device-only memory on the device's node
eth: bnxt_en: allocate fast path DMA rings on the queue's NUMA node
eth: bnxt_en: restart Rx queues when their IRQ moves to another NUMA
node
drivers/net/ethernet/broadcom/bnxt/bnxt.h | 7 +-
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 203 ++++++++++++++--------
2 files changed, 141 insertions(+), 69 deletions(-)
--
2.56.1
Technical Details
Message-ID:
<20261118023905.3050661-1-kuba@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-365821-linux-kernel-netdev=dewy.ruShow 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-365821-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next 0/6] eth: bnxt_en: allocate memory on the right NUMA node Date: Tue, 17 Nov 2026 18:38:59 -0800 Organization: Usenet Network Message-ID: <20261118023905.3050661-1-kuba@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2485484"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Jf3AEPMm5ad/shGvmgX2YIAvIqc= sha256:sc5izYkV/ah6cClgyIYC6VZorjkw+2l6eUku4QvcIqQ= sha1:PjCp1qbDPdpj5ar2hyZUjsONKCQ= sha256:wAfLuOk22Lbi+6vZhBM7KRfoD4wewnvIVVJzMa53Ocs= 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 C6090115165; Wed, 18 Nov 2026 05:39:55 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[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 uAzoIYVrBGRh; Wed, 18 Nov 2026 05:39:45 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365821-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 12388115160; Wed, 18 Nov 2026 05:39: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 2E9802896C; Wed, 18 Nov 2026 02:39:12 +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=1794969550; b=i2SeE1X61WlWGl7fdBe0ARacH5ilFlpE0WayUHfjEAE/xi4yn1TaIKebMgQ3x8cZd+4i b1AhedNWl4p2AbC7PqPoH0YzwHEGZtiQ/CA2Qqb4lJtkokd/rVFDlvAHSlvn4fW9v9Ztr usJrnZ09TBuBpJhjjj5KUkoDV3C6QeDwnQOJCa2a0O1Ai3/WFRS0OBAjwhnEdo1oE5jhP NkQo04Qc/Wj9X0jqw5jx+rJVets45XJZa+5waIDc1IHmwBI3qFF4MUyF3FkpsONtqycoY oOFIk1HDKbn1ez5jTB1rg9VuIYAVmhKf+XQKRZQioUcgmrmZ0gpwDlSXWFABp6iARTg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794969550; h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding; bh=4IefxGOVrie2q+3W2+0E+ydSIc1o5UmUe+FYzMqsbm8=; b=4AvIddbmhuBjTnizxftILWqtDcsLQpPEGCGozjWT/ejOygudeUaOHu2SLc9K0uupxboa m5HD6NFQHc7DI4/Y74exJLtkR0Z1FgRzwfqD4th8RdeIqBCZEt9t4tBZxNZwx2iaM/ZGq bFk9NSWuE2hRwmZu7Qm/DcSpNBfJw5uR8jfxRaAHde88FkH5j26TCWKGhjjis7uLo9/fH YOs+WA7QDTorqiPsQ72GtzpJ1yr+/nr8YV/GZgWIVlk9E04l/+BqvA7adEPWPW1i+vKF8 lJjaFo+18vgnB8H5rXSLMOWo64h6ClQfrNbztXmMOJnSAuRqOUl1larUBruzEUAMgcw== 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=HuYuqztX; 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 C1BF7606A335; Wed, 18 Nov 2026 02:39:10 +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=HuYuqztX 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=1794969549; b=EWOWIvbO5+LIr6rn+85VNvXcZMY+SCbIgt3uhJFHsupV0lZFyCYU+W38uMWjljs1RuoW GbrKM1M9mWxwBdHlYMeOUDfEjs3zQREXNSVjNCGEoYp0F8L7C9zOMGZYBbr5QQABQyAs+ DjsPDOnWTq6arSnwnsm82FwK0a0ptURuuVxBqOd3Cz3WoT6+chJia8TBqEYhh3sqSX8EE LDOLiI844ewT2tYJmUIFreiAaeIONL/tuZpTxeHsMR3zSHoXWH1G5meCEiqTDycqtH+tj njNGKjbgLdHWlyDxOy4yo2KbDNsrFOD0ZTLZ9kieiwLzInSLA8l/L3SL7kt1dChaTcw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794969549; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=4IefxGOVrie2q+3W2+0E+ydSIc1o5UmUe+FYzMqsbm8=; b=x6SoK+BJ9BMeOVfw5D9e4q2vwfLZGLeMex1Ib2OLiw509ZhEm8Xl/pfcwMjGznoBQd8W Fhuvsy+JxuTbBEGEAIxQ/inlZK9H1v1BXCiNTiZjglt5d/ydCU5wt/Au3pX/f9Eu5eK8U XAfUEUSZ9uRtpuKoLBGVyMCUQSxvGd9A0VBV844WrvNSYgiUuOhf+wlXLCJaeXctGrc0o GcmMvnSzF4M180imvAZo/aeSdYdVHcfO0hL8EA09USFD4L8dC5IXJ+Hmj7z3qgefP107r lL6lJXiQw0BhqvrhimHg/DoTzW9xZChALqTQpMzE+aZgtam4NycytLYKlWNTGZFl5NQ== 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=HuYuqztX; 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 DD06B606A325 for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 02:39:09 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 691341F000C4; Wed, 18 Nov 2026 02:39:09 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794969549; bh=4IefxGOVrie2q+3W2+0E+ydSIc1o5UmUe+FYzMqsbm8=; h=From:To:Cc:Subject:Date; b=HuYuqztX/8xSJfBoq2Z533CU0sn1fZ2FCbCEpo4Jdv72wl1p4C67SZgOvGsY5DXXL Xa8/Xd/X65NxkZjfSazKlJOpuHCF+PjrI1CXEiVQvuCh6uqimYgobzCYjpMVq7Wtxm Agwg3mCHAgEZDPdNN1+s/dL4Kabjtg+p6iK9FVHQ51ge2xfNkfL9afRhi1Z48r0KbS BVoVBoxbn7eQuudS7Nv7YSC2AlEkoZXuxvNkSancDPW2S/YDdmT4reG1R3j0vxvwIE 7wOAP8ZlZ1KiX6j/5YThQWqOOwcXVUAF1KNH8tHJD+nefJW7j1GWP42I0PUA/q/RQp FIicZzFM+Y4iw== 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-Mailer: git-send-email 2.56.1 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