Article View: linux.kernel.netdev
Article #18571Re: [PATCH net-next 5/6] eth: bnxt_en: allocate fast path DMA rings on the queue's NUMA node
From: Joe Damato
Date: Wed, 18 Nov 2026 14:51
Date: Wed, 18 Nov 2026 14:51
25 lines
12424 bytes
12424 bytes
On Tue, Nov 17, 2026 at 06:39:04PM -0800, Jakub Kicinski wrote: > 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> > --- > drivers/net/ethernet/broadcom/bnxt/bnxt.c | 24 +++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) Reviewed-by: Joe Damato <joe@dama.to>
Technical Details
Message-ID:
<av27YWHXFVft/rvS@devvm20253.cco0.facebook.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366200-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!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366200-linux-kernel-netdev=dewy.ru
From: joe@dama.to (Joe Damato)
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 06:51:13 -0800
Organization: Usenet Network
Message-ID: <av27YWHXFVft/rvS@devvm20253.cco0.facebook.com>
References: <20261118023905.3050661-1-kuba@kernel.org>
<20261118023905.3050661-6-kuba@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
logging-data="2621122"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:XNW9eUjXjFzPMGVM1+/5GYfT3Pc= sha256:UkFXhQMhX5YRW8H2b1pBW/OjFZlvmPX5YnBz4+g5SV0=
sha1:IrdaFp1EfWgYYNXBziemHwWueHw= sha256:w6nsF+kpRD7Qr+eO61+mp6Vl4viBp175dWz0ES/dxF8=
Content-Disposition: inline
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 96DA61152DE; Wed, 18 Nov 2026 17:51:32 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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=dama-to.20260707.gappssmtp.com
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 WFJa3aNF5anm;
Wed, 18 Nov 2026 17:51:29 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-366200-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=dama.to
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 767691152D4; Wed, 18 Nov 2026 17:51:20 +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 1C541439A4; Wed, 18 Nov 2026 14:51:19 +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=1795013476;
b=mlU0yx4ezwndrY5htZEFn8gPxjsC3NAGei7PsOXec2FsIevTMmdTMG419mkUh5AClk7+
GSh6yI1XfkhSrB0F1uDBOJ22NLAqAlBg8xgBFA1yGdlN4OeMzCPofbtiaJngQMntTOpFP
/DqgBcobmNn9dyX/3b3cNVEg4tJNmyttI2TQ5mf7lSfX0AyJ3g2VwbKAYkSg6K4RQ8J74
nwhQ1wB0+jgzCOFevIw3+GtlPCLZERTKCzbvikDYvEPxB0R4hV9oI9vGwC2c5NhcEyjKy
nP5pRXQCowd0ClxyVqaXGbtP821OsNmIQ8SUJz4vxSfh3DeI0lGAsrPi6UJ6bQRdNhg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795013476;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:Date:From:To:Cc:Subject:Message-ID:
Mail-Followup-To:References:X-Mailing-List:List-Id:List-Post:
List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
bh=WSCsgAKxJUrVu2FjCTH1xjYHsvtRyOSkfSVa/p3473o=;
b=WqHJFOo4U9OG/e3/3Y3zK2ohBLS4NfcFqb1u6y3aZuuehYnNE3whIGed8J7gCrkciZ5o
oiXOl2w+R5tBJDK/E2M9L6pjue+77n4n2QecFFatjloC6BAmU+MItQsbzoiVmLdwXABKD
Y9e0vS11H8Bf3+nThosYyRPXaXCpv2+AUf55fNYOd8BxaNe+dei10IKw5u85uQnRo4Eow
bnlf7nOSVxmZEhJVc/sy2hUIL/q2zfvzLriugjEK/TXdUwibkPpsOror6DzFLN9M5+xJK
40cp8rCUKpQiTnJv/KZJ8qRB47eG13yt30lCleYam/HGtdc7Bs9GD8cS9TRpFuzptkg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=dama-to.20260707.gappssmtp.com header.i=@dama-to.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=CGV7Qlbp;
dmarc=none header.from=dama.to;
spf=none smtp.mailfrom=dama.to;
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 ABDC5606A330;
Wed, 18 Nov 2026 14:51:16 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=dama-to.20260707.gappssmtp.com header.i=@dama-to.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=CGV7Qlbp
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.171
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795013475;
b=d1kahs6BLqVSIHat5ShPIVr5INHNHHbW8E0ZE2XmOGR1dzsc6N5ygazuTa1MnmYqXvz2
Y55KZb/l1jr0LvcovPRWCKDpchlYm04MrXvLwLCHBmhJ3WcMVXTh4UqLXb0i+FdOMog8v
GN8kaK5raUZB+v1PUfNOSJIwGmRX32wiWCAUBb42+akZxkFxevMtXsSu8E1TdF+ik5v7j
4pq5bGw/d35OsS1KNgbqJvVad7M5paads/1hDhS/Mk3wmTKkXkN3QJAsrCRqSHpwPVk6b
w37wtFawdpSwDn8mmDi5ccat9ft7RYmZZqLx7R5sEftaz6HTKKR3kB8v+5LPLtfkjVQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795013475;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:References:
MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
bh=WSCsgAKxJUrVu2FjCTH1xjYHsvtRyOSkfSVa/p3473o=;
b=FI9YNPfgtCi2i6ozZwYC/9mwsiMk9PU3z+3L8f8NZiBklitx7DWBqR7eNWFkxe0sNEsG
J6LtpbQPun9UUH3dMyHqGADdpjzDKvVbEAlgLCgsfv7GQJg5Prnv7qsJ2Ao3cdrTIjLrm
EmjXv9Dvd7C01aAHeCRO7RV6GBxsan60Jk7dGV8YeP3GOs+QsAduy6Zoq4TvBt1TjQmTa
QPHuOFRYXtnUu5TnCHfmh4CnLdkhSFQNBHYaOKrPkXYBPmSHE0SPXCZi3LklwCpLQmT/u
H+Jie9gPBeFpg3gUs3k1vU5P7+vUipsIaIkToT2zLJnNkfLufukFNBQkMVp3Dngg8Lg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=dama.to;
spf=none smtp.mailfrom=dama.to;
dkim=pass header.d=dama-to.20260707.gappssmtp.com header.i=@dama-to.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=CGV7Qlbp;
arc=none smtp.remote-ip=209.85.214.171
X-Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C565606A31C
for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 14:51:14 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7C565606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dama.to
X-Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=dama.to
X-Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-2e99b1e5b4cso8085445ad.0
for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 06:51:14 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=dama-to.20260707.gappssmtp.com; s=20260707; t=1795013474; x=1795618274; darn=vger.kernel.org;
h=in-reply-to:content-disposition:content-type:mime-version
:references:mail-followup-to:message-id:subject:cc:to:from:date:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=WSCsgAKxJUrVu2FjCTH1xjYHsvtRyOSkfSVa/p3473o=;
b=CGV7QlbpoG4eseJ6uOsu+1uU7//h+KEayDyzB1+14l/NLi8f1aLWReNQcobv+Xsbq0
a+kdzo9Cy9A/FdiInwEGiDCenmwYZj/Zn55qzD4JWIh+a49RBYJonvzMAgJIOJgZAxdc
Pbrf/88FhAg1AP7qDbzhHHkRc57DGvyd+2XkkGwslv22kBUvcqUEVfODSEnwuHVpnF2E
UbNEBK/v1aQbD/mjmeeq8ldym993HLC0gNtWi4LIU2BmaYnfhm4doV7h39ukfo3Nr1/K
e9TsDHQIKFTjt+y2Kq7EX03J7wek+Z8RUY5VL+wtXcYny3Du/3Fg0rAlZJrEH1l8TEuB
7ouw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795013474; x=1795618274;
h=in-reply-to:content-disposition:content-type:mime-version
:references:mail-followup-to:message-id:subject:cc:to:from:date
:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to:content-type;
bh=WSCsgAKxJUrVu2FjCTH1xjYHsvtRyOSkfSVa/p3473o=;
b=gpnJ8E5SR3Zi6WwBLLAq30OOagvGyf2sGYc8W6mFJQrCTyIPepZeqaR2BHwujvoUy2
3BNcQY3P1qLTvDgC39YSQKclV71a3oM50JFUnrFxfxXaKnVvWEW7GFI/5lEqZXuwhfF2
6nr6Mn4RtWBX2iPK7IPL+umK0JC3nCwyo9sopiLv55owTWGy1S8H9DQntv4D+z9M6aBH
/je0VQmzRjrkySAQbCBjCKB1g2YWVV/7K9bQRyns5Wsg82D/YBAmaWAmSx8Nc6dHEHue
PbKpUGAkOoW9L+dlCEaehjBo4QpU+gz4lWMkaG9OogK1EBTdQ/bUqaq9UHWeqYVvwbOc
pQSA==
X-Forwarded-Encrypted: i=1; AL+hErGu1r5sbOU0SemsdyAOZr5I+RB8FwbtAkZb3XMfcORZtdTalHs1lwwuznpMLQaabOoWlhWrxkU=@vger.kernel.org
X-Gm-Message-State: APuU4Z/H3eyGRdhuqbkbitbg0qJ3ydP5+l4F5cuyezFvrf67uxUO803c
Gqx9JDc+P4zHgAsmDkV5tW+L8+jIJF7m2yIIrDOeoR9zrCkBt+QNkSQCdRgLwvgJUiQ=
X-Gm-Gg: AZFdTZdEh6W2mKpYwIBtaUv0g6srx7JHEKb0BJAyyYvH2mcGEOHfd7oJM6+UgCXNZaM
gqYdnE8//pUZf2rLWVpISubAUzPxQbwI8YYGpuH8O37mO3m1Cj16mLKXCAQPvbT01sblg/gRPLx
mNdAq5tXbvWStc1L/1i7n9z1rW8NxtDNeZticDVa2UFtNoLf2ooIyAwS3USa73rP8m00QyfCARK
3LFYt4J5aDHkknfCu20WCkSLsfqvpQ4m13XGoO11c1qOHx0tk6XrOiSaxhmuLcK10hZAAwnKbvb
37pRvxZEGyfK64oTp7E6wgTNHgS1mJADCCdpbXbN4ibV9LBvE6IGPZKPgNo4FvnkSZeZDSP5ylb
wo8bKaVEGDZTZYuQ9fiKugYzK4ziKlBpfyMZJGRpk0YkYrQ8HqsxnlZ0AZkIamD+9rMcbxyPtNM
Va2F+efw32KmbMGGM7YMP1xHuMG8JImpOBRsJX07nQhqxZEs/GXYNANsRC3A8Ry5MeZXgPBcDEa
c/6hntuD2lZvprtHC1YokUfi8RNCSRCibMC7I2QAXHgXOuyf0NLfK9KnPACrqpNIVyrd3IgrN6b
49kD/7pp8MwxQqMxlhPgEAnRhgCPHg13OBIPBgB7GtEXy06WhBmDjBuQ9BoopoWd
X-Received: by 2002:a17:902:d583:b0:2ed:84c6:5f5 with SMTP id d9443c01a7336-2eff742389emr26059555ad.38.1795013474445;
Wed, 18 Nov 2026 06:51:14 -0800 (PST)
X-Received: from localhost ([2a03:2880:2ff:73::])
by smtp.gmail.com with ESMTPSA id d9443c01a7336-2eff5ed0998sm16028135ad.4.2026.11.18.06.51.13
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 18 Nov 2026 06:51:13 -0800 (PST)
X-Cc: davem@davemloft.net, michael.chan@broadcom.com, netdev@vger.kernel.org,
edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch,
horms@kernel.org, pavan.chebbi@broadcom.com
X-Mail-Followup-To: Joe Damato <joe@dama.to>,
Jakub Kicinski <kuba@kernel.org>, davem@davemloft.net,
michael.chan@broadcom.com, netdev@vger.kernel.org,
edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch,
horms@kernel.org, pavan.chebbi@broadcom.com
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: <20261118023905.3050661-6-kuba@kernel.org>