Message ID | 1553784438-17503-1-git-send-email-ilias.apalodimas@linaro.org |
---|---|
State | New |
Headers | show |
Series | [net-next,1/2] net: page_pool: add helper funtion to retrieve dma addresses | expand |
Please submit these patches alongside the first real user of these interfaces. Thanks.
diff --git a/include/net/page_pool.h b/include/net/page_pool.h index 694d055..b885d86 100644 --- a/include/net/page_pool.h +++ b/include/net/page_pool.h @@ -132,6 +132,11 @@ static inline void page_pool_recycle_direct(struct page_pool *pool, __page_pool_put_page(pool, page, true); } +static inline dma_addr_t page_pool_get_dma_addr(struct page *page) +{ + return page->dma_addr; +} + static inline bool is_page_pool_compiled_in(void) { #ifdef CONFIG_PAGE_POOL