tcp: rstreason: introduce SK_RST_REASON_TCP_DISCONNECT_WITH_DATA for active reset
authorJason Xing <kernelxing@tencent.com>
Fri, 2 Aug 2024 10:21:11 +0000 (18:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Aug 2024 09:24:46 +0000 (10:24 +0100)
commitc026c6562f86b24dd2dfef501fb1e64cc3884a79
treecd3a0903008b7a751d84b817c682a854bec02c35
parent0a399892a596055c8f069a17b4775fe5ab66d32a
tcp: rstreason: introduce SK_RST_REASON_TCP_DISCONNECT_WITH_DATA for active reset

When user tries to disconnect a socket and there are more data written
into tcp write queue, we should tell users about this reset reason.

Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/rstreason.h
net/ipv4/tcp.c