Article View: linux.kernel.netdev
Article #629Re: [PATCH net-next v2 2/2] docs: netmem: document netmem and memory provider design principles
From: Björn Töpel
Date: Thu, 08 Oct 2026 11:33
Date: Thu, 08 Oct 2026 11:33
19 lines
6717 bytes
6717 bytes
Mina Almasry <almasrymina@google.com> writes: > Add a Design Principles section to Documentation/networking/netmem.rst > covering the netmem_ref abstraction, the prohibition on direct > downcasting in callers, decoupling memory providers from net_iov, > decoupling net_iov from unreadability, delegating provider/type logic to > memory_provider_ops and netmem helpers, and the homogeneous skb fragment > memory type invariant. > > Cc: Luigi Rizzo <lrizzo@google.com> > Cc: Björn Töpel <bjorn@kernel.org> > Cc: Stanislav Fomichev <sdf@fomichev.me> > Cc: Pavel Begunkov <asml.silence@gmail.com> > Signed-off-by: Mina Almasry <almasrymina@google.com> This helps (helped me at least!) -- thanks for the clarifications! Reviewed-by: Björn Töpel <bjorn@kernel.org>
Technical Details
Message-ID:
<87a4oo2zqj.fsf@all.your.base.are.belong.to.us>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342918-linux-kernel-netdev=dewy.ruReferences:
<20261008023030.1089616-1-almasrymina@google.com> <20261008023030.1089616-3-almasrymina@google.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342918-linux-kernel-netdev=dewy.ru From: bjorn@kernel.org (Björn Töpel) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 2/2] docs: netmem: document netmem and memory provider design principles Date: Thu, 08 Oct 2026 13:33:40 +0200 Organization: Usenet Network Message-ID: <87a4oo2zqj.fsf@all.your.base.are.belong.to.us> References: <20261008023030.1089616-1-almasrymina@google.com> <20261008023030.1089616-3-almasrymina@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="867412"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:t0Fimp72Rn4PxuYmWQ+oS4/10Po= sha256:emFA007McbR8jcP2DEN9kg34ElkxfSQf7hwGRuNk1dg= sha1:7NrUiWL4vlgLln6g/L7/P10avKE= sha256:g8kgqdNi493526HWOjApvFEuOyizyZc5Mwu25n+cuXo= 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 8A96610F3B1; Thu, 8 Oct 2026 14:35:00 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.641 X-Spam-Status: No, score=-3.641 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, 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 XkM28Mv1FP98; Thu, 8 Oct 2026 14:34:57 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-342918-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 067BF10F367; Thu, 8 Oct 2026 14:34:53 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id B95692D301; Thu, 8 Oct 2026 11:33:45 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7276844D020; Thu, 8 Oct 2026 11:33:44 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mjOVT4gk" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E87B3C8719; Thu, 8 Oct 2026 11:33:42 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791459224; cv=none; b=fqqYbcfPzHBT31ilJ/0SaiM0qNW9sMzC1DM7cM3WaB5Gqn00sOFwAMWOWXB5Xad9Xe6FrxxaGyZ9BngcSJNDHh8ZLZglAzeEGIJNVOIcI4AH7iPYDU+4HKFDhUF6/XE7CePbYGAudI9sZjpEQsYT7L9zCdmDnlif2qQBDwGzxZo= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791459224; c=relaxed/simple; bh=ceUkDeWmmPei+btmcM9zEt7TCvFIZ6Dhd+ti4P8PXBU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=ow3iKqH1fDnVs+8nprPlo7FfJWuTpTLzgbXHwBIES75cIXFHYS/p5PUl9u3zzVzOMFX/WlxLbkWDn6tDY/zF4Jb2oyTQE38rtOLf1aLd7XmAyMB+rFhNz9yBwhRZHNfOZkcr71di4FZyYkUvIfmQb/xCJy7NQ4F8s2HxixSqK+U= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mjOVT4gk; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AE491F000FF; Thu, 8 Oct 2026 11:33:42 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791459222; bh=ceUkDeWmmPei+btmcM9zEt7TCvFIZ6Dhd+ti4P8PXBU=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=mjOVT4gkvYM0zsUFBgnn5cRXTx3RR2GtLJ5oArAU1SYGay+hDJtn2B7v6ANmBlIG3 QmcLytEWTJ6Mm1YX0cSolJItAIS8GEuLEFSP99eDrkOry674u1nF9Z0ZlLtN9Qmtp+ D9MEhKbP/dDys6UWTKyJq6b7gXuILLhKHvF4N8ia89TPNgYXUgYstkOvtDjOlWnsB7 3gV0md5tYweGFmD/vsB9bqspxG9ae1k+6LNIgVN7zq/UGL9ZNz1/rKAflKwMA9rzhN aKYUxhPdnR4hg2YFkyxfb/mGvRcHUfwqYZimkFuRBg6pD2kI8FgsTi4f66fEdcPJ1e w4pTbbVJ+i46w== X-Cc: Mina Almasry <almasrymina@google.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Jonathan Corbet <corbet@lwn.net>, Shuah Khan <skhan@linuxfoundation.org>, Randy Dunlap <rdunlap@infradead.org>, Jesper Dangaard Brouer <hawk@kernel.org>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, Alexei Starovoitov <ast@kernel.org>, Daniel Borkmann <daniel@iogearbox.net>, John Fastabend <john.fastabend@gmail.com>, Stanislav Fomichev <sdf@fomichev.me>, Luigi Rizzo <lrizzo@google.com>, Pavel Begunkov <asml.silence@gmail.com> X-In-Reply-To: <20261008023030.1089616-3-almasrymina@google.com> X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>