]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP]: TCP_DEFER_ACCEPT updates - process as established
authorPatrick McManus <mcmanus@ducksong.com>
Fri, 21 Mar 2008 23:33:01 +0000 (16:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Mar 2008 23:33:01 +0000 (16:33 -0700)
commit2209240bb94ab377cd508df38e13e2ddc2dc8585
tree11a3cd7c530e4225a4c3d4c3f3cc54eb7d2e0e4f
parent6409b422cd89d5e97d75ce7fd7c38b6ad11f50b5
[TCP]: TCP_DEFER_ACCEPT updates - process as established

Change TCP_DEFER_ACCEPT implementation so that it transitions a
connection to ESTABLISHED after handshake is complete instead of
leaving it in SYN-RECV until some data arrvies. Place connection in
accept queue when first data packet arrives from slow path.

Benefits:
  - established connection is now reset if it never makes it
   to the accept queue

 - diagnostic state of established matches with the packet traces
   showing completed handshake

 - TCP_DEFER_ACCEPT timeouts are expressed in seconds and can now be
   enforced with reasonable accuracy instead of rounding up to next
   exponential back-off of syn-ack retry.

Signed-off-by: Patrick McManus <mcmanus@ducksong.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
include/net/request_sock.h
include/net/tcp.h
net/ipv4/inet_connection_sock.c
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_minisocks.c
net/ipv4/tcp_timer.c