From d8415a165c43905ccf9ad7a4c7eaf6006b91a00b Mon Sep 17 00:00:00 2001 From: Pavel Begunkov Date: Wed, 10 Apr 2024 02:28:10 +0100 Subject: [PATCH] net: use SKB_CONSUMED in skb_attempt_defer_free() skb_attempt_defer_free() is used to free already processed skbs, so pass SKB_CONSUMED as the reason in kfree_skb_napi_cache(). Suggested-by: Jason Xing Suggested-by: Eric Dumazet Signed-off-by: Pavel Begunkov Reviewed-by: Eric Dumazet Link: https://lore.kernel.org/r/bcf5dbdda79688b074ab7ae2238535840a6d3fc2.1712711977.git.asml.silence@gmail.com Signed-off-by: Jakub Kicinski --- net/core/skbuff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 18612f255ef5..ab970ded8a7b 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -6983,7 +6983,7 @@ static void kfree_skb_napi_cache(struct sk_buff *skb) } local_bh_disable(); - __napi_kfree_skb(skb, SKB_DROP_REASON_NOT_SPECIFIED); + __napi_kfree_skb(skb, SKB_CONSUMED); local_bh_enable(); }