Re: [PATCH 2/7] net: mvneta: introduce page pool API for sw buffer manager

2019-10-07 Thread Lorenzo Bianconi
> Hi Lorenzo, > Hi Ilias, > On Sat, Oct 05, 2019 at 10:44:35PM +0200, Lorenzo Bianconi wrote: > > Use the page_pool api for allocations and DMA handling instead of > > __dev_alloc_page()/dma_map_page() and free_page()/dma_unmap_page(). > > Pages are unmapped using page_pool_release_page before

Re: [PATCH 2/7] net: mvneta: introduce page pool API for sw buffer manager

2019-10-05 Thread Ilias Apalodimas
Hi Lorenzo, On Sat, Oct 05, 2019 at 10:44:35PM +0200, Lorenzo Bianconi wrote: > Use the page_pool api for allocations and DMA handling instead of > __dev_alloc_page()/dma_map_page() and free_page()/dma_unmap_page(). > Pages are unmapped using page_pool_release_page before packets > go into the ne

[PATCH 2/7] net: mvneta: introduce page pool API for sw buffer manager

2019-10-05 Thread Lorenzo Bianconi
Use the page_pool api for allocations and DMA handling instead of __dev_alloc_page()/dma_map_page() and free_page()/dma_unmap_page(). Pages are unmapped using page_pool_release_page before packets go into the network stack. The page_pool API offers buffer recycling capabilities for XDP but allocat