tcp: support rstreason for passive reset
authorJason Xing <kernelxing@tencent.com>
Thu, 25 Apr 2024 03:13:37 +0000 (11:13 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Fri, 26 Apr 2024 13:34:00 +0000 (15:34 +0200)
commit120391ef9ca8fe8f82ea3f2961ad802043468226
treeba253590d95949da259a0d2d571178332eeb1df8
parent5691276b39daf90294c6a81fb6d62d667f634c92
tcp: support rstreason for passive reset

Reuse the dropreason logic to show the exact reason of tcp reset,
so we can finally display the corresponding item in enum sk_reset_reason
instead of reinventing new reset reasons. This patch replaces all
the prior NOT_SPECIFIED reasons.

Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/rstreason.h
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c