Re: [PATCH net-next v23 06/13] memory-provider: dmabuf devmem memory provider

2024-08-29 Thread Jakub Kicinski
On Thu, 29 Aug 2024 06:01:19 + Mina Almasry wrote: > + if (WARN_ON_ONCE(atomic_long_read(netmem_get_pp_ref_count_ref(netmem)) > != > + 1)) nit: temporary variable for this refcount, please

[PATCH net-next v23 06/13] memory-provider: dmabuf devmem memory provider

2024-08-28 Thread Mina Almasry
Implement a memory provider that allocates dmabuf devmem in the form of net_iov. The provider receives a reference to the struct netdev_dmabuf_binding via the pool->mp_priv pointer. The driver needs to set this pointer for the provider in the net_iov. The provider obtains a reference on the netde