]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit1c7fab70df085d866a3765955f397ca2b4025b15
treeec88a6b4b61d85f1dd7eb8706f5b609a7970a116
parent85125597419aec3aa7b8f3b8713e415f997796f2
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