aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/net/page_pool.h
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2019-06-18 15:05:17 +0200
committerDavid S. Miller <davem@davemloft.net>2019-06-19 11:23:13 -0400
commita25d50bfe645b3ed6b2cb3773e7025db14a608f3 (patch)
tree5bbe6d106cb73add65d943e20a0fac7bc47f321b /include/net/page_pool.h
parentnet: page_pool: add helper function to retrieve dma addresses (diff)
downloadwireguard-linux-a25d50bfe645b3ed6b2cb3773e7025db14a608f3.tar.xz
wireguard-linux-a25d50bfe645b3ed6b2cb3773e7025db14a608f3.zip
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/net/page_pool.h')
-rw-r--r--include/net/page_pool.h1
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,