diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-04-20 05:00:05 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-04-21 05:25:08 +0300 |
commit | 8fa66e4a1bdd41d55d7842928e60a40fed65715d (patch) | |
tree | 62061425fbc4991298798fe48850614b39b5f4fd /net/core/gro.c | |
parent | 61718206ee5de9cc2c3503c59287c0b968446508 (diff) | |
download | linux-8fa66e4a1bdd41d55d7842928e60a40fed65715d.tar.xz |
net: skbuff: update and rename __kfree_skb_defer()
__kfree_skb_defer() uses the old naming where "defer" meant
slab bulk free/alloc APIs. In the meantime we also made
__kfree_skb_defer() feed the per-NAPI skb cache, which
implies bulk APIs. So take away the 'defer' and add 'napi'.
While at it add a drop reason. This only matters on the
tx_action path, if the skb has a frag_list. But getting
rid of a SKB_DROP_REASON_NOT_SPECIFIED seems like a net
benefit so why not.
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://lore.kernel.org/r/20230420020005.815854-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/gro.c')
-rw-r--r-- | net/core/gro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/gro.c b/net/core/gro.c index a606705a0859..2d84165cb4f1 100644 --- a/net/core/gro.c +++ b/net/core/gro.c @@ -633,7 +633,7 @@ static gro_result_t napi_skb_finish(struct napi_struct *napi, else if (skb->fclone != SKB_FCLONE_UNAVAILABLE) __kfree_skb(skb); else - __kfree_skb_defer(skb); + __napi_kfree_skb(skb, SKB_CONSUMED); break; case GRO_HELD: |