Re: [net-next v1 07/16] netdev: netdevice devmem allocator

2023-12-08 Thread Mina Almasry
On Fri, Dec 8, 2023 at 9:56 AM David Ahern wrote: > > On 12/7/23 5:52 PM, Mina Almasry wrote: > > diff --git a/net/core/dev.c b/net/core/dev.c > > index b8c8be5a912e..30667e4c3b95 100644 > > --- a/net/core/dev.c > > +++ b/net/core/dev.c > > @@ -2120,6 +2120,41 @@ static int

Re: [net-next v1 07/16] netdev: netdevice devmem allocator

2023-12-08 Thread David Ahern
On 12/7/23 5:52 PM, Mina Almasry wrote: > diff --git a/net/core/dev.c b/net/core/dev.c > index b8c8be5a912e..30667e4c3b95 100644 > --- a/net/core/dev.c > +++ b/net/core/dev.c > @@ -2120,6 +2120,41 @@ static int netdev_restart_rx_queue(struct net_device > *dev, int rxq_idx) > return err; >

[net-next v1 07/16] netdev: netdevice devmem allocator

2023-12-07 Thread Mina Almasry
Implement netdev devmem allocator. The allocator takes a given struct netdev_dmabuf_binding as input and allocates page_pool_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 page_pool_iov struct.