Re: [PATCH net] tcp: properly account Fast Open SYN-ACK retrans

2016-09-22 Thread David Miller
From: Yuchung Cheng Date: Wed, 21 Sep 2016 16:16:15 -0700 > 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

[PATCH net] tcp: properly account Fast Open SYN-ACK retrans

2016-09-21 Thread Yuchung Cheng
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-