Re: [PATCH net-next v18 04/14] netdev: netdevice devmem allocator

2024-08-06 Thread Jakub Kicinski
On Mon, 5 Aug 2024 21:25:17 + Mina Almasry wrote: > +struct net_iov * > +net_devmem_alloc_dmabuf(struct net_devmem_dmabuf_binding *binding) > +{ > + struct dmabuf_genpool_chunk_owner *owner; > + unsigned long dma_addr; > + struct net_iov *niov; > + ssize_t offset; > + ssize

[PATCH net-next v18 04/14] netdev: netdevice devmem allocator

2024-08-05 Thread Mina Almasry
Implement netdev devmem allocator. The allocator takes a given struct netdev_dmabuf_binding as input and allocates net_iov from that binding. The allocation simply delegates to the binding's genpool for the allocation logic and wraps the returned memory region in a net_iov struct. Signed-off-by: