summaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
authorMina Almasry <almasrymina@google.com>2024-04-08 17:29:58 +0200
committerJakub Kicinski <kuba@kernel.org>2024-04-10 03:20:32 +0200
commitf58f3c9563409e618e591d0d540316286cb0665f (patch)
tree7137308fbcdba00cb1b087c1efd78be02fc5b1b8 /net/core/skbuff.c
parentnet: make napi_frag_unref reuse skb_page_unref (diff)
downloadlinux-f58f3c9563409e618e591d0d540316286cb0665f.tar.xz
linux-f58f3c9563409e618e591d0d540316286cb0665f.zip
net: remove napi_frag_unref
With the changes in the last patches, napi_frag_unref() is now reduandant. Remove it and use skb_page_unref directly. Signed-off-by: Mina Almasry <almasrymina@google.com> Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Link: https://lore.kernel.org/r/20240408153000.2152844-4-almasrymina@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r--net/core/skbuff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 21cd01641f4c..888874ef8566 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -1101,7 +1101,7 @@ static void skb_release_data(struct sk_buff *skb, enum skb_drop_reason reason)
}
for (i = 0; i < shinfo->nr_frags; i++)
- napi_frag_unref(&shinfo->frags[i], skb->pp_recycle);
+ __skb_frag_unref(&shinfo->frags[i], skb->pp_recycle);
free_head:
if (shinfo->frag_list)