Re: [PATCH net-next v2 2/2] docs: netmem: document netmem and memory provider design principles
From: Björn Töpel
Date: Thu Oct 08 2026 - 07:35:17 EST
Mina Almasry <almasrymina@xxxxxxxxxx> 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@xxxxxxxxxx>
> Cc: Björn Töpel <bjorn@xxxxxxxxxx>
> Cc: Stanislav Fomichev <sdf@xxxxxxxxxxx>
> Cc: Pavel Begunkov <asml.silence@xxxxxxxxx>
> Signed-off-by: Mina Almasry <almasrymina@xxxxxxxxxx>
This helps (helped me at least!) -- thanks for the clarifications!
Reviewed-by: Björn Töpel <bjorn@xxxxxxxxxx>