Article View: linux.kernel.netdev
Article #20486Re: [PATCH net-next v1 00/11] xsk: Zero copy through page-pool memory providers
From: Björn Töpel
Date: Sun, 22 Nov 2026 18:12
Date: Sun, 22 Nov 2026 18:12
35 lines
9042 bytes
9042 bytes
Björn Töpel <bjorn@kernel.org> writes: > Hi! > > AF_XDP zero copy needs a second RX allocator in every driver. This > series makes UMEM a page-pool memory provider instead: a page_pool > driver opts in, and keeps its refill, recycling and DMA sync code. > fbnic is the first user. Patches 1-7 are core, 8-11 fbnic. > > Since the RFC [RFC], net_iov is a first class netmem, the core owns > AF_XDP setup, and a refill contract replaces the NAPI kicks. The fixes > are out. Hey, Thanks for all the input! TL;DR for new readers: Too much churn, especially on the driver side. net_iov was not intended to be readable from the core side of things. The net_iov part needs some deeper thinking. UMEM memory is readable (the kernel can read the memory), but needs a non-page refcounting, and benefits from the rx_buf_len (larger chunks). iouring TCP ZC frags are also readable, and the kernel does read from it from time to time, but it still unreadable. I have some ideas how to fit UMEM to the puzzle. :-) I'm working on a v2, but it'll have a different take than this version, to try to reduce the amount of driver churn. It'll probably be an RFC or a brand new v1. I'll try to address all input from this design. Cheers, and thanks all! Björn
Technical Details
Message-ID:
<875wxo3fbz.fsf@all.your.base.are.belong.to.us>Path:
mbox-mo1.pugleaf.net!srv.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-368779-linux-kernel-netdev=dewy.ruReferences:
<20261110102039.1002605-1-bjorn@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.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-368779-linux-kernel-netdev=dewy.ru From: bjorn@kernel.org (Björn Töpel) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v1 00/11] xsk: Zero copy through page-pool memory providers Date: Sun, 22 Nov 2026 19:12:48 +0100 Organization: Usenet Network Message-ID: <875wxo3fbz.fsf@all.your.base.are.belong.to.us> References: <20261110102039.1002605-1-bjorn@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="3695155"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:bs84TpDr8qVpEzMjOTWO5sNeipA= sha256:2s8FPyRMiCkuvlN+0UtIZvmRfIEym+RzLCPrDlC5X98= sha1:ZD2YgJDbUew9q0K1W7e2G0lBitY= sha256:FOl7f38wEL6pIOMsldyr6eIsobpcAyNDSTb3i+eDiyM= 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 5C465125D81; Sun, 22 Nov 2026 21:13: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 UNNJx-pn-UIc; Sun, 22 Nov 2026 21:13:39 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-368779-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 6F81D125D80; Sun, 22 Nov 2026 21:13:27 +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 412CF300C6; Sun, 22 Nov 2026 18:13:05 +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=1795371184; b=M2RzSUG3ryoiPnN4BfB1eMlKCddg4FVu5hagZYTQ2SVIHejp/9EDiIxC6aOKE7z52RN/ fbs+vjRNkqhmvSQrObpLz02A9pptHXsiOkEUnkTX7i3OKRBq/vUnTUwL8uP4MZuczH1GH 1rbqPH2s6jpYKo3gd0bw3OwWi1GPmLjGYPWD+MVIza1wO7uAnvRQ2mrlJf/PV6GLOHoTq 2HbY8PDfc9GWjz9LpDpA94xjwZxLI4kjr8xVJWFoVhoXW1vtJV6NGWeEqny+g2FgLfkrf Lb3mFh7DlSJveHoHAQSJUWOLgwhi43W0w2JfPQSW3zF/F+g5k0YBFf1rs9JRXlJmIIg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795371184; 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=Mo3kjI8Xpm7/wjLGyOU2Dz1FSRwjRmlKgOXYc5So1Wo=; b=pV/hHKfqPENua5XLujbT9mvkqaxi+1lchqQHeMHq0vb0/aCmslHA14A/xXhudm/Id4M/ EXFRJiW1LTa6J0i9CkKXvGG7nTwrgBrnKpmB0Ppls5sJ9Z+uevuSkJF0nrET+9woROnEh tvYVAXgIeo0fRUQWoT5HFLwCOys/dD48rdGchpnvYe8gzWrtX1Y7zg9yAidWRQM73y3es Mghr9wTQruEf1e9Kznqq1ebnq+TvJIlUUo62X++cYMqARxpb4wVx2e/7kiccwVyuviRpk 2s6AnGIbT9rEWj1QrigiEGXbVNjy/B9y14oNzGQC242MKGhoZxf4O+6kUUYGHacZ0UA== 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=CRXAsa7W; 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 7CDC8606A32A; Sun, 22 Nov 2026 18:13:04 +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=CRXAsa7W 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=1795371173; b=MVq3y8PWyHhfmk4uYk4jHtE3rej7W4c5lmFeN3tEukIIncvCeAP65UoUCuwZViWfIPYY 6UyIKY34hw6/6P4BJ7zE4itfTAiJqLUqyRVpFxl0oeC7bi1Yh0nXmm26mArbrgUaIXVZG oRZzozzqSttts2wvIz+RJ3ViKUHApEKKvN0WczQzb3/gJGcTvqyVdlrc1hJs26wAYjKYC LF+HgMTHaXHK+MvphspfIoPbxqUycARe+XBjh/tDni7hfjiXg9PqKuuQkay8U8rJlpolp Y4GQqoXJVFP900DMKzbwssPb5aSx9ozPy0+b9vd1b257z7jt59Cg/PNzs6QhHPKC5/Q== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795371173; h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References: Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=Mo3kjI8Xpm7/wjLGyOU2Dz1FSRwjRmlKgOXYc5So1Wo=; b=kHlJxd9Td+qnz48sxP3+6Sq0KQ0AhKBsYMoIln9uIW3EGXdVsRrr5mJUwntO7fSNXp++ z6Vg2ABj0Ue0A3hR8bahx8MV8Bit7CQBU/aFFrUxji2ms6b/TiRHzUzx33mpVA26HIA+D tk1sg8SlEr22AeQyLP5S0mfp0tezXfbwk9b8vHRFP5EuLyFgDUmO3npuxh+mlOKY30Mcb yu+3cCZ1gcGYESGYogetEfsFdVNK87iyh8l/i31W51W5dl4Lm3/u/99Vwbev7vMzfO2cC pRvAZznQDW8kf4pDF+qkPm+WQ7YsPHxDi2DsYByT9NpVQiB8IZbhwq4XwdL/TPDgz4w== 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=CRXAsa7W; 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 9563F606A32C; Sun, 22 Nov 2026 18:12:53 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 496DE1F000E0; Sun, 22 Nov 2026 18:12:52 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795371173; bh=Mo3kjI8Xpm7/wjLGyOU2Dz1FSRwjRmlKgOXYc5So1Wo=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=CRXAsa7WDcnr2ID5hW3MaNS8IBlTnwVXVJ8jXES1HeAZTZ3owWi7Jn6LnQROmNfCX Hi8rA/SLh+CHxEvOsm02vz7ws7HW6NjN7P+tmWSxuvjwiAp4kC4c/V8sgDRu5afefE FRdxn02SK7LycBgR4LtKd3nmhJX9Ax9nSonYf8Y9R4CQxHxVyMqLkJhvJQU7x78/KY Ab5BQZBvk4eMTPQXua0rXBa5nlfjtQXVNSJivVZef3T3NdY6gfAjmvKuPwd14N6daa g1qQgODYl562WzAX7PIj5fdjZij/aCqtQ4FqCm7Y5Csq8408v0v8sA7ZL5+/3l/OTF Sa59F0+lGszOQ== X-Cc: "Mike Marciniszyn (Meta)" <mike.marciniszyn@gmail.com>, Weiming Shi <bestswngs@gmail.com>, Nikolay Aleksandrov <razor@blackwall.org>, David Wei <dw@davidwei.uk>, Alexander Lobakin <aleksander.lobakin@intel.com>, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Stuart Clark <stuclar@meta.com> X-In-Reply-To: <20261110102039.1002605-1-bjorn@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