diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/page_pool.h | 5 | ||||
-rw-r--r-- | include/net/xdp.h | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/net/page_pool.h b/include/net/page_pool.h index c79087153148..694d055e01ef 100644 --- a/include/net/page_pool.h +++ b/include/net/page_pool.h | |||
@@ -115,13 +115,14 @@ void page_pool_destroy(struct page_pool *pool); | |||
115 | void __page_pool_put_page(struct page_pool *pool, | 115 | void __page_pool_put_page(struct page_pool *pool, |
116 | struct page *page, bool allow_direct); | 116 | struct page *page, bool allow_direct); |
117 | 117 | ||
118 | static inline void page_pool_put_page(struct page_pool *pool, struct page *page) | 118 | static inline void page_pool_put_page(struct page_pool *pool, |
119 | struct page *page, bool allow_direct) | ||
119 | { | 120 | { |
120 | /* When page_pool isn't compiled-in, net/core/xdp.c doesn't | 121 | /* When page_pool isn't compiled-in, net/core/xdp.c doesn't |
121 | * allow registering MEM_TYPE_PAGE_POOL, but shield linker. | 122 | * allow registering MEM_TYPE_PAGE_POOL, but shield linker. |
122 | */ | 123 | */ |
123 | #ifdef CONFIG_PAGE_POOL | 124 | #ifdef CONFIG_PAGE_POOL |
124 | __page_pool_put_page(pool, page, false); | 125 | __page_pool_put_page(pool, page, allow_direct); |
125 | #endif | 126 | #endif |
126 | } | 127 | } |
127 | /* Very limited use-cases allow recycle direct */ | 128 | /* Very limited use-cases allow recycle direct */ |
diff --git a/include/net/xdp.h b/include/net/xdp.h index 0b689cf561c7..7ad779237ae8 100644 --- a/include/net/xdp.h +++ b/include/net/xdp.h | |||
@@ -104,6 +104,7 @@ struct xdp_frame *convert_to_xdp_frame(struct xdp_buff *xdp) | |||
104 | } | 104 | } |
105 | 105 | ||
106 | void xdp_return_frame(struct xdp_frame *xdpf); | 106 | void xdp_return_frame(struct xdp_frame *xdpf); |
107 | void xdp_return_frame_rx_napi(struct xdp_frame *xdpf); | ||
107 | void xdp_return_buff(struct xdp_buff *xdp); | 108 | void xdp_return_buff(struct xdp_buff *xdp); |
108 | 109 | ||
109 | int xdp_rxq_info_reg(struct xdp_rxq_info *xdp_rxq, | 110 | int xdp_rxq_info_reg(struct xdp_rxq_info *xdp_rxq, |