summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorEric Dumazet2014-03-10 01:36:02 +0100
committerDavid S. Miller2014-03-10 21:15:54 +0100
commit431a91242d8d7876d33ab91b1f3ccdcd56b14f66 (patch)
tree3469a5bca9cc5ee4c3397eb9b19fe2ca2e8f6c18 /net/ipv4/tcp_input.c
parenthyperv: Change the receive buffer size for legacy hosts (diff)
downloadkernel-qcow2-linux-431a91242d8d7876d33ab91b1f3ccdcd56b14f66.tar.gz
kernel-qcow2-linux-431a91242d8d7876d33ab91b1f3ccdcd56b14f66.tar.xz
kernel-qcow2-linux-431a91242d8d7876d33ab91b1f3ccdcd56b14f66.zip
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: 740b0f1841f6 ("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>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index b99003f556d8..e1661f46fd19 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -3067,6 +3067,7 @@ static int tcp_clean_rtx_queue(struct sock *sk, int prior_fackets,
flag |= FLAG_RETRANS_DATA_ACKED;
} else {
last_ackt = skb->skb_mstamp;
+ WARN_ON_ONCE(last_ackt.v64 == 0);
if (!first_ackt.v64)
first_ackt = last_ackt;