Article View: linux.kernel.netdev
Article #16747Re: [PATCH net-next v1 06/11] page_pool: Coordinate refill with memory providers
From: Björn Töpel
Date: Sun, 15 Nov 2026 19:17
Date: Sun, 15 Nov 2026 19:17
40 lines
9949 bytes
9949 bytes
netdev-bot+sashiko@kernel.org writes: [...] > Should netif_mp_napi_del() also clear rxq->napi when it matches, or > should netif_mp_update_napi() only publish a NAPI that is still > listed? If drivers are expected to clear the association themselves, > could netmem.rst item 8 say so? The first. v2 drops mp_napi, so wakeups use rxq->napi itself, under RCU, and the core clears it when the NAPI is deleted. [...] > Should the documented contract require that, or should the core handle > the disabled-NAPI case itself? The contract. fbnic polls the vector right after napi_enable() (FBNIC_INTR_SET), so the queue refills once, from the reuse stack or FILL, and refill_done marks it starved again if both are empty. A wakeup lost on a stopped queue doesn't matter then. v2 documents that a driver polls the queue once after enabling its NAPI. > Could uses_need_wakeup be cached in struct xsk_pp when it is created, or > read only after pp->fq is confirmed under pp->lock? Same root cause as the failed removal in 05, and the same fix. The pool then stays until the queue DMA has stopped, and no refill runs after that. > Should the error path arm from the configuration that is running > again, or should __netif_mp_open_rxq() and __netif_mp_close_rxq() call > netif_mp_update_napi() once they have settled rxq->mp_params? Neither is needed -- with mp_napi and mp_armed gone in v2, there is no wakeup target to arm from the wrong configuration. Björn
Technical Details
Message-ID:
<87ld6thpkw.fsf@all.your.base.are.belong.to.us>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363817-linux-kernel-netdev=dewy.ruReferences:
<20261110102039.1002605-7-bjorn@kernel.org> <179443689325.2199510.6016244708978672874@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-363817-linux-kernel-netdev=dewy.ru From: bjorn@kernel.org (Björn Töpel) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v1 06/11] page_pool: Coordinate refill with memory providers Date: Sun, 15 Nov 2026 20:17:19 +0100 Organization: Usenet Network Message-ID: <87ld6thpkw.fsf@all.your.base.are.belong.to.us> References: <20261110102039.1002605-7-bjorn@kernel.org> <179443689325.2199510.6016244708978672874@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="1881689"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ghB4dEqolDRnx8XzL66KI7Q4GXk= sha256:zkO+vTInaHFvDhbDLUTBy+az2XL2zIbg3QyoKU9/6S0= sha1:ZYRA2k7nujUUURABNMcRJbyUOxo= sha256:5kXLpCIc1K2ENWBiRjSZZWam/VQCGVQQD8TBR8HDTQU= 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 EA2ED114A45; Sun, 15 Nov 2026 22:17:47 +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 y1R1SGFbH-NK; Sun, 15 Nov 2026 22:17:44 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-363817-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 58A301149FF; Sun, 15 Nov 2026 22:17:34 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 7A1FA2779F; Sun, 15 Nov 2026 19:17:27 +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=1794770244; b=VFuVDn4pixwhOqmPaNJ03n7PQ7Q5V845fSQq0EM5yNas01izj/qj9LJo4EZ7zpFBzHTH TTqiyD2qdcTCL7lxyJmqxg53YlMJEcIqdLmJ2TXaihvn3OORivQLBPjVr3RcbSgYFy6g6 GqBRo6kI00/Wd+SaOpe48zUVqbz04A95fCLMoDaLJfTuPzE1o9tu24s8bLn1rqDn+cija sGk9z2f/Sf5TzKaQPqSPgpulM5xdsmOF9uHvUn0eOx/SGbeSdF+RgJxxoL67PXSC3GGXM dbLugWHts+IV2OLfUMVZ171RbnTwsPl6obgzWee8R/P02iSdJx87nlDxn240Yp0IZfQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794770244; 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=syiaQMJ04df2CAPDd9TxgmwagOaCksS43FztMaZSoj4=; b=dhftoMzjiWfD3bw11pNiTQBgzqq3sGSli8l8I4G6kflmSGSFWuj/iSrTPCUtvMVYbbVT nzPJ52iY/VebIF3GFk1IIuX4jBewyzWUKd11oICGgUa1G5vYtjpEP+/znM4HN12ix02la AeyAYzs9HldJZSMkL8I0DSUkFDdAivvsfFMzULrfmVZohoDxmTsS3Bq9AlyvzM08kgJVh jFd89WdwcB9NL/RF3T6KO/7Vo6XR7ylQ6i2qlmVdB0gQnWMhahlxDhOhzLxMqEk19yafP 693MtFoH+IvSIWbeXqA1shYeMADrIQ5hp7U79VbvZVAZpv2zz2YiWFHzdJ2Q/6sedWA== 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=NQ2RTQiU; 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 048AF606A33B; Sun, 15 Nov 2026 19:17:24 +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=NQ2RTQiU 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=1794770243; b=JPQ3p0F4pfHRJXHyge2ZhsjM+2fJNNXvohqq5saBeoGvU9iRpKbXtFgbWLhHlA3SxZH7 Hi5ygeuaBBbFb5JFw3tdiaD4q3WnZ7pgV/SAPJVJMOHxMc8ypWSgavo11kdzr7Drj8XVL pPjYq3wnrOpDbn3yNykNmno+pRUJ9phYkzClZs5E3zWmNwEcV5Lc59y9ysnjKcyWvSQMY JQkKeewKH8s4uQZSmjHDN8q/I306/VC/GX4aqKVegfjMCv5zlX0zuI9l6WejuND7ZzxDI J9rK+59nrRWsIKXvib/a1oXdnDofTSqtjLDRrCSbAI5I27NwwSXxL7O5TpNC+8QLHNA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794770243; h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References: Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=syiaQMJ04df2CAPDd9TxgmwagOaCksS43FztMaZSoj4=; b=YI9DW0o84/btgXhcFZC57hmxJfpLJ3uUOz0d10lR3SoNfKVikJylVoTxgADjGgBFwtat v5jr5alAwc9YhCs25HAwJUWQdQQJ6ud+Uh6p8LaiEXjRONHo+WKOySObDUp9Om7akayAS q7jZksPe3KAJaUNSqu3Kl38PiFFVJrMYojpaPduqXh++/c/AJTwFphhSgw07Bafsls9tF xNOJxnogng7KVh5pMIfTxJLbgPcqpXKphda0RYPkqHQB1oekLTvvoltIO2i7/c36qPi0P +JBhi19AhhX5YbKS5AGsmM+YPUsG7v+if3ArWRZJ1NjQbBcC0U1LNxmi7RyI9c7nh3w== 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=NQ2RTQiU; 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 203CB606A323; Sun, 15 Nov 2026 19:17:22 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBBF11F000C4; Sun, 15 Nov 2026 19:17:21 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794770242; bh=syiaQMJ04df2CAPDd9TxgmwagOaCksS43FztMaZSoj4=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=NQ2RTQiUkooIEv2aFmxn0mSejwHAVan7OoLwkXp7+EqL2JE0uyg24oNE/w8/BPWGU hOkEUqIcDLeoy6OECB08uAAAqUGy6jJbvGmrZQE1k0fPw5aiUyeVkPyTKP6ZLr8hhJ znImMXQFXrHoaun4DzvCTiTsjpny2ultaPf0sLdeCuE6xqS0qb+FGZLDa7+wyuAKiv NuTb3IfidJO8ZktYh+I8f6+utWgwo5Mv+YUTMcv9JSMRBm9cDgointBeyQ2h166T9t a1q+nUh0ZUqUIJQX914bGraPwGIETtkpad3nVgRfq6u6rtlguO+PxFoX7biiqEnA0U BPqgK4+7YLhXA== X-Cc: magnus.karlsson@intel.com, maciej.fijalkowski@intel.com, sdf@fomichev.me, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org, alexanderduyck@fb.com, kernel-team@meta.com, andrew+netdev@lunn.ch, hawk@kernel.org, ilias.apalodimas@linaro.org, ast@kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com, asml.silence@gmail.com, axboe@kernel.dk, andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, jolsa@kernel.org, emil@etsalapatis.com, ihor.solodrai@linux.dev, netdev@vger.kernel.org, bpf@vger.kernel.org, io-uring@vger.kernel.org, almasrymina@google.com, mike.marciniszyn@gmail.com, bestswngs@gmail.com, razor@blackwall.org, dw@davidwei.uk, aleksander.lobakin@intel.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, stuclar@meta.com X-In-Reply-To: <179443689325.2199510.6016244708978672874@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