summaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorMenglong Dong <imagedong@tencent.com>2022-02-20 15:06:33 +0800
committerDavid S. Miller <davem@davemloft.net>2022-02-20 13:55:31 +0000
commit7a26dc9e7b43f5a24c4b843713e728582adf1c38 (patch)
treed00986fcf40658d8a29ace8ef825644bf3f60861 /include/trace
parent643b622b51f1f0015e0a80f90b4ef9032e6ddb1b (diff)
downloadlinux-stable-7a26dc9e7b43f5a24c4b843713e728582adf1c38.tar.gz
linux-stable-7a26dc9e7b43f5a24c4b843713e728582adf1c38.tar.bz2
linux-stable-7a26dc9e7b43f5a24c4b843713e728582adf1c38.zip
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/trace')
-rw-r--r--include/trace/events/skb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/trace/events/skb.h b/include/trace/events/skb.h
index 46c06b0be850..bfccd77e9071 100644
--- a/include/trace/events/skb.h
+++ b/include/trace/events/skb.h
@@ -31,6 +31,7 @@
EM(SKB_DROP_REASON_TCP_MD5UNEXPECTED, \
TCP_MD5UNEXPECTED) \
EM(SKB_DROP_REASON_TCP_MD5FAILURE, TCP_MD5FAILURE) \
+ EM(SKB_DROP_REASON_SOCKET_BACKLOG, SOCKET_BACKLOG) \
EMe(SKB_DROP_REASON_MAX, MAX)
#undef EM