]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: udp: use kfree_skb_reason() in __udp_queue_rcv_skb()
authorMenglong Dong <imagedong@tencent.com>
Sat, 5 Feb 2022 07:47:39 +0000 (15:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Feb 2022 11:18:49 +0000 (11:18 +0000)
commit08d4c0370c400fa6ef2194f9ee2e8dccc4a7ab39
tree93527fd2e749a2414d40572d5141eb20dffa96bc
parent1379a92d38e31132e87d9b653e9343c7841a7348
net: udp: use kfree_skb_reason() in __udp_queue_rcv_skb()

Replace kfree_skb() with kfree_skb_reason() in __udp_queue_rcv_skb().
Following new drop reasons are introduced:

SKB_DROP_REASON_SOCKET_RCVBUFF
SKB_DROP_REASON_PROTO_MEM

Signed-off-by: Menglong Dong <imagedong@tencent.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/trace/events/skb.h
net/ipv4/udp.c