]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: timestamp SYN+DATA messages
authorEric Dumazet <edumazet@google.com>
Mon, 10 Mar 2014 00:36:02 +0000 (17:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Mar 2014 20:15:54 +0000 (16:15 -0400)
commit200384833822b685dd8407d4c67abbb46e017ac0
tree3469a5bca9cc5ee4c3397eb9b19fe2ca2e8f6c18
parente1dbcf0af10e624621578271cd19330b9e4c6be6
tcp: timestamp SYN+DATA messages

All skb in socket write queue should be properly timestamped.

In case of FastOpen, we special case the SYN+DATA 'message' as we
queue in socket wrote queue the two fallback skbs:

1) SYN message by itself.
2) DATA segment by itself.

We should make sure these skbs have proper timestamps.

Add a WARN_ON_ONCE() to eventually catch future violations.

Fixes: db181f9a0759 ("tcp: switch rtt estimations to usec resolution")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c