]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: tcp: use tcp_drop_reason() for tcp_rcv_established()
authorMenglong Dong <imagedong@tencent.com>
Sun, 20 Feb 2022 07:06:35 +0000 (15:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Feb 2022 13:55:31 +0000 (13:55 +0000)
commit2a968ef60e1fac4e694d9f60ce19a3b66b40e8c3
tree67a6462d44dd2a9700b20c4cf835a6ad6e32351a
parent8eba65fa5f06519042b98564089b942d795e3f8d
net: tcp: use tcp_drop_reason() for tcp_rcv_established()

Replace tcp_drop() used in tcp_rcv_established() with tcp_drop_reason().
Following drop reasons are added:

SKB_DROP_REASON_TCP_FLAGS

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>
include/linux/skbuff.h
include/trace/events/skb.h
net/ipv4/tcp_input.c