diff options
author | Menglong Dong <imagedong@tencent.com> | 2022-02-20 10:06:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-20 16:55:31 +0300 |
commit | 7a26dc9e7b43f5a24c4b843713e728582adf1c38 (patch) | |
tree | d00986fcf40658d8a29ace8ef825644bf3f60861 /include/linux/skbuff.h | |
parent | 643b622b51f1f0015e0a80f90b4ef9032e6ddb1b (diff) | |
download | linux-7a26dc9e7b43f5a24c4b843713e728582adf1c38.tar.xz |
net: tcp: add skb drop reasons to tcp_add_backlog()
Pass the address of drop_reason to tcp_add_backlog() to store the
reasons for skb drops when fails. Following drop reasons are
introduced:
SKB_DROP_REASON_SOCKET_BACKLOG
Reviewed-by: Mengen Sun <mengensun@tencent.com>
Reviewed-by: Hao Peng <flyingpeng@tencent.com>
Signed-off-by: Menglong Dong <imagedong@tencent.com>
Reviewed-by: Eric Dumazet <edumazet@google.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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 46678eb587ff..f7f33c79945b 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -358,6 +358,10 @@ enum skb_drop_reason { * corresponding to * LINUX_MIB_TCPMD5FAILURE */ + SKB_DROP_REASON_SOCKET_BACKLOG, /* failed to add skb to socket + * backlog (see + * LINUX_MIB_TCPBACKLOGDROP) + */ SKB_DROP_REASON_MAX, }; |