diff options
| author | 2022-02-05 15:47:39 +0800 | |
|---|---|---|
| committer | 2022-02-07 11:18:49 +0000 | |
| commit | 08d4c0370c400fa6ef2194f9ee2e8dccc4a7ab39 (patch) | |
| tree | 93527fd2e749a2414d40572d5141eb20dffa96bc /include/linux | |
| parent | net: udp: use kfree_skb_reason() in udp_queue_rcv_one_skb() (diff) | |
| download | linux-dev-08d4c0370c400fa6ef2194f9ee2e8dccc4a7ab39.tar.xz linux-dev-08d4c0370c400fa6ef2194f9ee2e8dccc4a7ab39.zip | |
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')
| -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, }; |
