diff options
author | Menglong Dong <imagedong@tencent.com> | 2022-02-05 10:47:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-07 14:18:49 +0300 |
commit | 08d4c0370c400fa6ef2194f9ee2e8dccc4a7ab39 (patch) | |
tree | 93527fd2e749a2414d40572d5141eb20dffa96bc /include/linux/skbuff.h | |
parent | 1379a92d38e31132e87d9b653e9343c7841a7348 (diff) | |
download | linux-08d4c0370c400fa6ef2194f9ee2e8dccc4a7ab39.tar.xz |
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>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 2a64afa97910..a5adbf6b51e8 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -341,6 +341,11 @@ enum skb_drop_reason { */ SKB_DROP_REASON_XFRM_POLICY, /* xfrm policy check failed */ SKB_DROP_REASON_IP_NOPROTO, /* no support for IP protocol */ + SKB_DROP_REASON_SOCKET_RCVBUFF, /* socket receive buff is full */ + SKB_DROP_REASON_PROTO_MEM, /* proto memory limition, such as + * udp packet drop out of + * udp_memory_allocated. + */ SKB_DROP_REASON_MAX, }; |