[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bcf5dbdda79688b074ab7ae2238535840a6d3fc2.1712711977.git.asml.silence@gmail.com>
Date: Wed, 10 Apr 2024 02:28:10 +0100
From: Pavel Begunkov <asml.silence@...il.com>
To: netdev@...r.kernel.org
Cc: edumazet@...gle.com,
davem@...emloft.net,
dsahern@...nel.org,
pabeni@...hat.com,
kuba@...nel.org,
Pavel Begunkov <asml.silence@...il.com>,
Jason Xing <kerneljasonxing@...il.com>
Subject: [PATCH net-next v4 2/2] 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 <kerneljasonxing@...il.com>
Suggested-by: Eric Dumazet <edumazet@...gle.com>
Signed-off-by: Pavel Begunkov <asml.silence@...il.com>
---
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 62b07ed3af98..dd266f44aaff 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();
}
--
2.44.0
Powered by blists - more mailing lists