Re: [PATCH net-next v2 2/4] netmem: store memory provider private pointer directly in struct net_iov
From: Stanislav Fomichev
Date: Tue Nov 03 2026 - 17:43:57 EST
On 11/02, Mina Almasry wrote:
[..]
> Resolving the memory provider instance from a struct net_iov currently
> chases niov->owner (struct net_iov_area) and then dereferences the
> provider-specific container struct (such as net_devmem_dmabuf_binding
> or io_zcrx_area->ifq).
Chasing niov->owner is true, but I don't see another dereference you're
talking about? net_devmem_iov_binding does container_of to get from
area to the binding (and the area is the first member of the binding,
so it is a already a nop). And IIRC, iou has a similar arrangement.
So I'd vote to keep things as is unless you explain what I'm missing.