Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Stanislav Fomichev
Thu, 08 Oct 2026 22:09
Re: [PATCH net-next v2 0/2] net: netmem: document design principles and intended direction
Author: Stanislav Fomichev
Date: Thu, 08 Oct 2026 22:09
Date: Thu, 08 Oct 2026 22:09
35 lines
10352 bytes
10352 bytes
On 10/08, Mina Almasry wrote: > Because the networking stack and drivers are only partially converted to > netmem_ref and current memory providers only supply unreadable net_iovs, > automated code review and analysis tools (such as LLMs) frequently infer > the wrong architectural invariants from existing code. Specifically, > they often assume that page_pool's struct page APIs are primary rather > than legacy wrappers, that memory providers always imply net_iov, that > net_iov is inherently unreadable, or that callers should branch on or > downcast netmem_ref directly. > > Document the intended netmem, memory provider, page_pool, and skb > fragment design principles concisely in the relevant headers, code > comments, and netmem documentation so both developers and automated > tools follow the intended abstractions. This series adds comments and > documentation rather than performing a large refactor all at once, so > that future incremental changes nudge the codebase in the intended > direction. > > This reflects my mental model of the netmem, page_pool, and memory > provider architecture; I welcome feedback and disagreements, > particularly from major contributors to page_pool and memory providers. > > 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> > --- > v2: > - Document both current implementation status (memory providers currently > supply net_iov, and net_iov is currently unreadable) and target design > principles, and clarify that new code should generalize existing > limitations as much as possible (Stanislav Fomichev). Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads