]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: use current time in tcp_rcv_space_adjust()
authorEric Dumazet <edumazet@google.com>
Wed, 6 Dec 2017 19:08:19 +0000 (11:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Dec 2017 19:31:03 +0000 (14:31 -0500)
commit40b98ab8091b5c771c1d6b18f11f79cc62d8b5a4
tree0d034255e3381ca1f3e797b712c9da9198fd3b3c
parent1d9fbdfcafdb5d6290b87d741ad041c896cc8e13
tcp: use current time in tcp_rcv_space_adjust()

When I switched rcv_rtt_est to high resolution timestamps, I forgot
that tp->tcp_mstamp needed to be refreshed in tcp_rcv_space_adjust()

Using an old timestamp leads to autotuning lags.

Fixes: eeeec57e5e7b ("tcp: switch rcv_rtt_est and rcvq_space to high resolution timestamps")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Wei Wang <weiwan@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c