mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
net: dropreason: Gather SOCKET_ drop reasons.
The following patch adds a new drop reason starting with the SOCKET_ prefix. Let's gather the existing SOCKET_ reasons. Note that the order is not part of uAPI. Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Link: https://patch.msgid.link/20250116053441.5758-2-kuniyu@amazon.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
3a0b7fa095
commit
454d402481
|
|
@ -6,9 +6,10 @@
|
|||
#define DEFINE_DROP_REASON(FN, FNe) \
|
||||
FN(NOT_SPECIFIED) \
|
||||
FN(NO_SOCKET) \
|
||||
FN(SOCKET_FILTER) \
|
||||
FN(SOCKET_RCVBUFF) \
|
||||
FN(PKT_TOO_SMALL) \
|
||||
FN(TCP_CSUM) \
|
||||
FN(SOCKET_FILTER) \
|
||||
FN(UDP_CSUM) \
|
||||
FN(NETFILTER_DROP) \
|
||||
FN(OTHERHOST) \
|
||||
|
|
@ -18,7 +19,6 @@
|
|||
FN(UNICAST_IN_L2_MULTICAST) \
|
||||
FN(XFRM_POLICY) \
|
||||
FN(IP_NOPROTO) \
|
||||
FN(SOCKET_RCVBUFF) \
|
||||
FN(PROTO_MEM) \
|
||||
FN(TCP_AUTH_HDR) \
|
||||
FN(TCP_MD5NOTFOUND) \
|
||||
|
|
@ -138,12 +138,14 @@ enum skb_drop_reason {
|
|||
* 3) no valid child socket during 3WHS process
|
||||
*/
|
||||
SKB_DROP_REASON_NO_SOCKET,
|
||||
/** @SKB_DROP_REASON_SOCKET_FILTER: dropped by socket filter */
|
||||
SKB_DROP_REASON_SOCKET_FILTER,
|
||||
/** @SKB_DROP_REASON_SOCKET_RCVBUFF: socket receive buff is full */
|
||||
SKB_DROP_REASON_SOCKET_RCVBUFF,
|
||||
/** @SKB_DROP_REASON_PKT_TOO_SMALL: packet size is too small */
|
||||
SKB_DROP_REASON_PKT_TOO_SMALL,
|
||||
/** @SKB_DROP_REASON_TCP_CSUM: TCP checksum error */
|
||||
SKB_DROP_REASON_TCP_CSUM,
|
||||
/** @SKB_DROP_REASON_SOCKET_FILTER: dropped by socket filter */
|
||||
SKB_DROP_REASON_SOCKET_FILTER,
|
||||
/** @SKB_DROP_REASON_UDP_CSUM: UDP checksum error */
|
||||
SKB_DROP_REASON_UDP_CSUM,
|
||||
/** @SKB_DROP_REASON_NETFILTER_DROP: dropped by netfilter */
|
||||
|
|
@ -174,8 +176,6 @@ enum skb_drop_reason {
|
|||
SKB_DROP_REASON_XFRM_POLICY,
|
||||
/** @SKB_DROP_REASON_IP_NOPROTO: no support for IP protocol */
|
||||
SKB_DROP_REASON_IP_NOPROTO,
|
||||
/** @SKB_DROP_REASON_SOCKET_RCVBUFF: socket receive buff is full */
|
||||
SKB_DROP_REASON_SOCKET_RCVBUFF,
|
||||
/**
|
||||
* @SKB_DROP_REASON_PROTO_MEM: proto memory limitation, such as
|
||||
* udp packet drop out of udp_memory_allocated.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user