Re: [PATCH net-next v12 06/13] page_pool: devmem support

2024-06-23 Thread Pavel Begunkov
On 6/21/24 19:48, Mina Almasry wrote: On Mon, Jun 17, 2024 at 7:17 AM Pavel Begunkov wrote: ... static inline unsigned long netmem_to_pfn(netmem_ref netmem) { + if (netmem_is_net_iov(netmem)) + return 0; IIRC 0 is a valid pfn. Not much of a concern since it's used only

Re: [PATCH net-next v12 06/13] page_pool: devmem support

2024-06-21 Thread Mina Almasry
On Mon, Jun 17, 2024 at 7:17 AM Pavel Begunkov wrote: > > On 6/13/24 02:35, Mina Almasry wrote: > > Convert netmem to be a union of struct page and struct netmem. Overload > > the LSB of struct netmem* to indicate that it's a net_iov, otherwise > > it's a page. > > > > Currently these entries in s

Re: [PATCH net-next v12 06/13] page_pool: devmem support

2024-06-17 Thread Pavel Begunkov
On 6/13/24 02:35, Mina Almasry wrote: Convert netmem to be a union of struct page and struct netmem. Overload the LSB of struct netmem* to indicate that it's a net_iov, otherwise it's a page. Currently these entries in struct page are rented by the page_pool and used exclusively by the net stack

[PATCH net-next v12 06/13] page_pool: devmem support

2024-06-12 Thread Mina Almasry
Convert netmem to be a union of struct page and struct netmem. Overload the LSB of struct netmem* to indicate that it's a net_iov, otherwise it's a page. Currently these entries in struct page are rented by the page_pool and used exclusively by the net stack: struct { unsigned long pp_mag