]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: tcp_rack_reo_timeout() must update tp->tcp_mstamp
authorEric Dumazet <edumazet@google.com>
Thu, 27 Apr 2017 04:10:55 +0000 (21:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Apr 2017 15:46:15 +0000 (11:46 -0400)
commitffe18b2318a6c5b392439aab565b705e324cc77a
treeafceb2af54f0c3ef5ce6b51d7b65dfcfc181fd17
parent566ab458b79b9c4c863386687f8c89a4f7c1b34f
tcp: tcp_rack_reo_timeout() must update tp->tcp_mstamp

I wrongly assumed tp->tcp_mstamp was up to date at the time
tcp_rack_reo_timeout() was called.

It is not true, since we only update tcp->tcp_mstamp when receiving
a packet (as initially done in commit bde8256f70ad ("tcp: add
tp->tcp_mstamp field")

tcp_rack_reo_timeout() being called by a timer and not an incoming
packet, we need to refresh tp->tcp_mstamp

Fixes: a1d7c6c23f8e ("tcp: do not pass timestamp to tcp_rack_detect_loss()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Soheil Hassas Yeganeh <soheil@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_recovery.c