diff options
| author | Menglong Dong <[email protected]> | 2022-02-20 07:06:33 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-02-20 13:55:31 +0000 |
| commit | 7a26dc9e7b43f5a24c4b843713e728582adf1c38 (patch) | |
| tree | d00986fcf40658d8a29ace8ef825644bf3f60861 /net/ipv6/tcp_ipv6.c | |
| parent | net: tcp: add skb drop reasons to tcp_v{4,6}_inbound_md5_hash() (diff) | |
| download | kernel-7a26dc9e7b43f5a24c4b843713e728582adf1c38.tar.gz kernel-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 <[email protected]>
Reviewed-by: Hao Peng <[email protected]>
Signed-off-by: Menglong Dong <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
| -rw-r--r-- | net/ipv6/tcp_ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 1262b790b146..abf0ad547858 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -1784,7 +1784,7 @@ process: if (!sock_owned_by_user(sk)) { ret = tcp_v6_do_rcv(sk, skb); } else { - if (tcp_add_backlog(sk, skb)) + if (tcp_add_backlog(sk, skb, &drop_reason)) goto discard_and_relse; } bh_unlock_sock(sk); |
