Re: [PATCH net-next] net: devmem: remove net_iov_area base_virtual
From: Mina Almasry
Date: Tue Oct 06 2026 - 03:14:42 EST
On Mon, Oct 5, 2026 at 1:18 PM Stanislav Fomichev <sdf.kernel@xxxxxxxxx> wrote:
>
> Since commit 083e64a3af77 ("net: devmem: replace gen_pool with
> freelist"), a binding has a single net_iov_area covering the whole
> dma-buf, and base_virtual is always 0. Its only reader is
> net_iov_virtual_addr(), where it adds nothing. io_uring zcrx never
> uses it.
>
> Drop the field and the store, and compute the dma-buf offset from the
> net_iov index alone.
>
> No functional change. From review feedback on:
> https://lore.kernel.org/netdev/asPUZ8DPllHd6Yu9@xxxxxxxxxxxxxxxxxxxxxxxxxxx/
>
> Signed-off-by: Stanislav Fomichev <sdf@xxxxxxxxxxx>
Acked-by: Mina Almasry <almasrymina@xxxxxxxxxx>
--
Thanks,
Mina