projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cb31c4
)
net: use SKB_CONSUMED in skb_attempt_defer_free()
author
Pavel Begunkov
<asml.silence@gmail.com>
Wed, 10 Apr 2024 01:28:10 +0000
(
02:28
+0100)
committer
Jakub Kicinski
<kuba@kernel.org>
Thu, 11 Apr 2024 02:27:32 +0000
(19:27 -0700)
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@gmail.com>
Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link:
https://lore.kernel.org/r/bcf5dbdda79688b074ab7ae2238535840a6d3fc2.1712711977.git.asml.silence@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/skbuff.c
patch
|
blob
|
history
diff --git
a/net/core/skbuff.c
b/net/core/skbuff.c
index
18612f2
..
ab970de
100644
(file)
--- 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_SPECIFI
ED);
+ __napi_kfree_skb(skb, SKB_
CONSUM
ED);
local_bh_enable();
}