]> git.baikalelectronics.ru Git - kernel.git/commit
net: skb: use kfree_skb_reason() in __udp4_lib_rcv()
authorMenglong Dong <imagedong@tencent.com>
Sun, 9 Jan 2022 06:36:28 +0000 (14:36 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 10 Jan 2022 00:30:35 +0000 (16:30 -0800)
commit2f033159eb352b3dec975b2bc56eb0dbcef52c18
treeec88a6b4b61d85f1dd7eb8706f5b609a7970a116
parent6c0dcab5aa21ec8a7cb77731f182b39363514f82
net: skb: use kfree_skb_reason() in __udp4_lib_rcv()

Replace kfree_skb() with kfree_skb_reason() in __udp4_lib_rcv.
New drop reason 'SKB_DROP_REASON_UDP_CSUM' is added for udp csum
error.

Signed-off-by: Menglong Dong <imagedong@tencent.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/skbuff.h
include/trace/events/skb.h
net/ipv4/udp.c