• Octavian Purdila's avatar
    tcp: tcp_v[46]_conn_request: fix snt_synack initialization · aa27fc50
    Octavian Purdila authored
    Commit 016818d0 (tcp: TCP Fast Open Server - take SYNACK RTT after
    completing 3WHS) changes the code to only take a snt_synack timestamp
    when a SYNACK transmit or retransmit succeeds. This behaviour is later
    broken by commit 843f4a55 (tcp: use tcp_v4_send_synack on first
    SYN-ACK), as snt_synack is now updated even if tcp_v4_send_synack
    fails.
    
    Also, commit 3a19ce0e (tcp: IPv6 support for fastopen server) misses
    the required IPv6 updates for 016818d0.
    
    This patch makes sure that snt_synack is updated only when the SYNACK
    trasnmit/retransmit succeeds, for both IPv4 and IPv6.
    
    Cc: Cardwell <ncardwell@google.com>
    Cc: Daniel Lee <longinus00@gmail.com>
    Cc: Yuchung Cheng <ycheng@google.com>
    Signed-off-by: default avatarOctavian Purdila <octavian.purdila@intel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    aa27fc50
tcp_ipv6.c 52.5 KB