tcp: rstreason: handle timewait cases in the receive path
authorJason Xing <kernelxing@tencent.com>
Fri, 10 May 2024 12:25:01 +0000 (20:25 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 May 2024 00:33:57 +0000 (17:33 -0700)
commit22a32557758a7100e46dfa8f383a401125e60b16
tree9b230ca176f3e2cf51b313f474db8403e0ea0b37
parentf6d5e2cc291fdf6f804c2754e345b41055d1aac4
tcp: rstreason: handle timewait cases in the receive path

There are two possible cases where TCP layer can send an RST. Since they
happen in the same place, I think using one independent reason is enough
to identify this special situation.

Signed-off-by: Jason Xing <kernelxing@tencent.com>
Link: https://lore.kernel.org/r/20240510122502.27850-5-kerneljasonxing@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/rstreason.h
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c