aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2024-07-02 18:59:33 -0700
committerJakub Kicinski <[email protected]>2024-07-02 18:59:33 -0700
commitdf18948d331eacc213cfc9e8ffc84a07dfd4dcd1 (patch)
tree79e9ad9c5d7d6b20615bd7c36719a96c0e9de179 /include/linux
parentac26327635d643efe173e7460fa09eb39f0e5c54 (diff)
parent07c3cc51a0853986af0fc52d0544b1b67b391ea8 (diff)
Merge branch 'device-memory-tcp'
Prep patches for Device Memory TCP Pick up a couple of prep patches for Device Memory TCP which stand on their own. Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/skbuff_ref.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/skbuff_ref.h b/include/linux/skbuff_ref.h
index 11f0a4063403..16c241a23472 100644
--- a/include/linux/skbuff_ref.h
+++ b/include/linux/skbuff_ref.h
@@ -32,13 +32,13 @@ static inline void skb_frag_ref(struct sk_buff *skb, int f)
__skb_frag_ref(&skb_shinfo(skb)->frags[f]);
}
-bool napi_pp_put_page(struct page *page);
+bool napi_pp_put_page(netmem_ref netmem);
static inline void
skb_page_unref(struct page *page, bool recycle)
{
#ifdef CONFIG_PAGE_POOL
- if (recycle && napi_pp_put_page(page))
+ if (recycle && napi_pp_put_page(page_to_netmem(page)))
return;
#endif
put_page(page);