summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJason Xing <kernelxing@tencent.com>2024-08-02 18:21:08 +0800
committerDavid S. Miller <davem@davemloft.net>2024-08-07 10:24:45 +0100
commit8407994f0c3594eb3854e3799af86224f4a8e6e6 (patch)
tree025975d0fe85a83ba7a92e4b23f2d8808b33874f /include
parentedc92b48abc5b21c98eca5d05b98a560d7df2e4d (diff)
downloadlwn-8407994f0c3594eb3854e3799af86224f4a8e6e6.tar.gz
lwn-8407994f0c3594eb3854e3799af86224f4a8e6e6.zip
tcp: rstreason: introduce SK_RST_REASON_TCP_ABORT_ON_MEMORY for active reset
Introducing a new type TCP_ABORT_ON_MEMORY for tcp reset reason to handle out of memory case. 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')
-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 fbbaeb969e6a..eef658da8952 100644
--- a/include/net/rstreason.h
+++ b/include/net/rstreason.h
@@ -19,6 +19,7 @@
FN(INVALID_SYN) \
FN(TCP_ABORT_ON_CLOSE) \
FN(TCP_ABORT_ON_LINGER) \
+ FN(TCP_ABORT_ON_MEMORY) \
FN(MPTCP_RST_EUNSPEC) \
FN(MPTCP_RST_EMPTCP) \
FN(MPTCP_RST_ERESOURCE) \
@@ -96,6 +97,11 @@ enum sk_rst_reason {
* corresponding to LINUX_MIB_TCPABORTONLINGER
*/
SK_RST_REASON_TCP_ABORT_ON_LINGER,
+ /**
+ * @SK_RST_REASON_TCP_ABORT_ON_MEMORY: abort on memory
+ * corresponding to LINUX_MIB_TCPABORTONMEMORY
+ */
+ SK_RST_REASON_TCP_ABORT_ON_MEMORY,
/* Copy from include/uapi/linux/mptcp.h.
* These reset fields will not be changed since they adhere to