tcp: better SYNACK sent timestamp
authorYuchung Cheng <ycheng@google.com>
Mon, 29 Apr 2019 22:46:15 +0000 (15:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 15:47:54 +0000 (11:47 -0400)
commit9e450c1ecb027417c99eba651413d2a6ba6ffc1f
treef399effe5bad9cdffefb6485555f269016233c71
parent7c1f08154c4e34d10be41156375ce2b8ab591b0f
tcp: better SYNACK sent timestamp

Detecting spurious SYNACK timeout using timestamp option requires
recording the exact SYNACK skb timestamp. Previously the SYNACK
sent timestamp was stamped slightly earlier before the skb
was transmitted. This patch uses the SYNACK skb transmission
timestamp directly.

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