From: Eric Dumazet Subject: [PATCH v2 net-next 2/8] inet: add TCP_NEW_SYN_RECV state Date: Thu, 12 Mar 2015 16:44:04 -0700 Message-ID: <1426203850-11034-3-git-send-email-edumazet@google.com> References: <1426203850-11034-1-git-send-email-edumazet@google.com> Cc: netdev@vger.kernel.org, Eric Dumazet To: "David S. Miller" Return-path: Received: from mail-ig0-f202.google.com ([209.85.213.202]:34141 "EHLO mail-ig0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752991AbbCLXol (ORCPT ); Thu, 12 Mar 2015 19:44:41 -0400 Received: by igqa13 with SMTP id a13so574634igq.1 for ; Thu, 12 Mar 2015 16:44:41 -0700 (PDT) In-Reply-To: <1426203850-11034-1-git-send-email-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: TCP_SYN_RECV state is currently used by fast open sockets. Initial TCP requests (the pseudo sockets created when a SYN is received) are not yet associated to a state. They are attached to their parent, and the parent is in TCP_LISTEN state. This commit adds TCP_NEW_SYN_RECV state, so that we can convert TCP stack to a different schem gradually. This state is not exported to user space. Signed-off-by: Eric Dumazet --- include/net/tcp_states.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/net/tcp_states.h b/include/net/tcp_states.h index b0b645988bd8..50e78a74d0df 100644 --- a/include/net/tcp_states.h +++ b/include/net/tcp_states.h @@ -25,6 +25,7 @@ enum { TCP_LAST_ACK, TCP_LISTEN, TCP_CLOSING, /* Now a valid state */ + TCP_NEW_SYN_RECV, TCP_MAX_STATES /* Leave at the end! */ }; @@ -44,7 +45,8 @@ enum { TCPF_CLOSE_WAIT = (1 << 8), TCPF_LAST_ACK = (1 << 9), TCPF_LISTEN = (1 << 10), - TCPF_CLOSING = (1 << 11) + TCPF_CLOSING = (1 << 11), + TCPF_NEW_SYN_RECV = (1 << 12), }; #endif /* _LINUX_TCP_STATES_H */ -- 2.2.0.rc0.207.ga3a616c