Re: [PATCH net-next v1 01/11] net: Get skb fragment addresses through netmem
From: Mina Almasry
Date: Wed Nov 18 2026 - 13:39:25 EST
On Tue, Nov 17, 2026 at 4:33 PM Jakub Kicinski <kuba@xxxxxxxxxx> wrote:
>
> On Mon, 16 Nov 2026 15:31:27 +0100 Björn Töpel wrote:
> > > IIRC netmem is supposed to be used for frags and memory CPU never needs
> > > to access.
> >
> > netmem covers pages too, and netmem.rst already allows readable net_iovs
> > ("Decouple net_iov from unreadability"); the in-tree ones just happen to
> > be unreadable.
>
> Ugh, slop got in :/ I really don't think "the in-tree ones just happen
> to be unreadable." I seem to recall being involved in that design.
Oh, that was an intentional, I didn't think there was any reason
readable net_iovs couldn't exist in the future. Actually even dmabuf
net_iovs can be made readable sometimes, as some dmabufs support
dma_buf_vmap, and in theory the net_iov could hold a virtual address
derived from the return value of dma_buf_vmap that the kernel can
access.
Do you think there is a reason net_iovs can never be extended to
readable memory?
Do you want that point from netmem.rst reverted?
--
Thanks,
Mina