diff options
author | Jason Xing <kernelxing@tencent.com> | 2024-08-02 18:21:10 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-08-07 10:24:45 +0100 |
commit | 0a399892a596055c8f069a17b4775fe5ab66d32a (patch) | |
tree | 9fc963ab93336071a3315a8290baabfdadfab50a /include | |
parent | edefba66d929eb2d023df93a0a8175a4ffe82684 (diff) | |
download | lwn-0a399892a596055c8f069a17b4775fe5ab66d32a.tar.gz lwn-0a399892a596055c8f069a17b4775fe5ab66d32a.zip |
tcp: rstreason: introduce SK_RST_REASON_TCP_KEEPALIVE_TIMEOUT for active reset
Introducing this to show the users the reason of keepalive timeout.
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/rstreason.h b/include/net/rstreason.h index bbf20d0bbde7..9c0c46df0e73 100644 --- a/include/net/rstreason.h +++ b/include/net/rstreason.h @@ -21,6 +21,7 @@ FN(TCP_ABORT_ON_LINGER) \ FN(TCP_ABORT_ON_MEMORY) \ FN(TCP_STATE) \ + FN(TCP_KEEPALIVE_TIMEOUT) \ FN(MPTCP_RST_EUNSPEC) \ FN(MPTCP_RST_EMPTCP) \ FN(MPTCP_RST_ERESOURCE) \ @@ -108,6 +109,12 @@ enum sk_rst_reason { * Please see RFC 9293 for all possible reset conditions */ SK_RST_REASON_TCP_STATE, + /** + * @SK_RST_REASON_TCP_KEEPALIVE_TIMEOUT: time to timeout + * When we have already run out of all the chances, which means + * keepalive timeout, we have to reset the connection + */ + SK_RST_REASON_TCP_KEEPALIVE_TIMEOUT, /* Copy from include/uapi/linux/mptcp.h. * These reset fields will not be changed since they adhere to |