summaryrefslogtreecommitdiffstats
path: root/include/net/rstreason.h
diff options
context:
space:
mode:
authorJason Xing <kernelxing@tencent.com>2024-08-02 12:21:06 +0200
committerDavid S. Miller <davem@davemloft.net>2024-08-07 11:24:45 +0200
commit90c36325c796cc7111329607a649c34f4979c78e (patch)
tree17a66d748d0dab7723e13d00c4314e850bf1c781 /include/net/rstreason.h
parentMerge tag 'linux-can-next-for-6.12-20240806' of git://git.kernel.org/pub/scm/... (diff)
downloadlinux-90c36325c796cc7111329607a649c34f4979c78e.tar.xz
linux-90c36325c796cc7111329607a649c34f4979c78e.zip
tcp: rstreason: introduce SK_RST_REASON_TCP_ABORT_ON_CLOSE for active reset
Introducing a new type TCP_ABORT_ON_CLOSE for tcp reset reason to handle the case where more data is unread in closing phase. Signed-off-by: Jason Xing <kernelxing@tencent.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/rstreason.h')
-rw-r--r--include/net/rstreason.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/rstreason.h b/include/net/rstreason.h
index 2575c85d7f7a..fa6bfd0d7d69 100644
--- a/include/net/rstreason.h
+++ b/include/net/rstreason.h
@@ -17,6 +17,7 @@
FN(TCP_ABORT_ON_DATA) \
FN(TCP_TIMEWAIT_SOCKET) \
FN(INVALID_SYN) \
+ FN(TCP_ABORT_ON_CLOSE) \
FN(MPTCP_RST_EUNSPEC) \
FN(MPTCP_RST_EMPTCP) \
FN(MPTCP_RST_ERESOURCE) \
@@ -84,6 +85,11 @@ enum sk_rst_reason {
* an error, send a reset"
*/
SK_RST_REASON_INVALID_SYN,
+ /**
+ * @SK_RST_REASON_TCP_ABORT_ON_CLOSE: abort on close
+ * corresponding to LINUX_MIB_TCPABORTONCLOSE
+ */
+ SK_RST_REASON_TCP_ABORT_ON_CLOSE,
/* Copy from include/uapi/linux/mptcp.h.
* These reset fields will not be changed since they adhere to