diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2019-06-18 15:05:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-19 11:23:13 -0400 |
commit | a25d50bfe645b3ed6b2cb3773e7025db14a608f3 (patch) | |
tree | 5bbe6d106cb73add65d943e20a0fac7bc47f321b /include | |
parent | 0afdeeed08b5f59148069e9f7a52d2ab0eba5d49 (diff) | |
download | linux-a25d50bfe645b3ed6b2cb3773e7025db14a608f3.tar.bz2 |
net: page_pool: add helper function to unmap dma addresses
On a previous patch dma addr was stored in 'struct page'.
Use that to unmap DMA addresses used by network drivers
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/page_pool.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/page_pool.h b/include/net/page_pool.h index b885d86cb7a1..ad218cef88c5 100644 --- a/include/net/page_pool.h +++ b/include/net/page_pool.h @@ -110,6 +110,7 @@ static inline struct page *page_pool_dev_alloc_pages(struct page_pool *pool) struct page_pool *page_pool_create(const struct page_pool_params *params); void page_pool_destroy(struct page_pool *pool); +void page_pool_unmap_page(struct page_pool *pool, struct page *page); /* Never call this directly, use helpers below */ void __page_pool_put_page(struct page_pool *pool, |