]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: properly account Fast Open SYN-ACK retrans
authorYuchung Cheng <ycheng@google.com>
Wed, 21 Sep 2016 23:16:15 +0000 (16:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Sep 2016 07:33:01 +0000 (03:33 -0400)
commitda01e0f3d41ea016d1555a93bd91a62584436734
treedb26faa9681668af9678e478ec9aaed6a1b58c01
parent4172cf6d1a968abca0016e86e9d52eb053597532
tcp: properly account Fast Open SYN-ACK retrans

Since the TFO socket is accepted right off SYN-data, the socket
owner can call getsockopt(TCP_INFO) to collect ongoing SYN-ACK
retransmission or timeout stats (i.e., tcpi_total_retrans,
tcpi_retransmits). Currently those stats are only updated
upon handshake completes. This patch fixes it.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c
net/ipv4/tcp_timer.c