mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
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: 645f4c6f2e
("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>
This commit is contained in:
parent
6e237d099f
commit
8632385022
1 changed files with 1 additions and 0 deletions
|
@ -579,6 +579,7 @@ void tcp_rcv_space_adjust(struct sock *sk)
|
|||
int time;
|
||||
int copied;
|
||||
|
||||
tcp_mstamp_refresh(tp);
|
||||
time = tcp_stamp_us_delta(tp->tcp_mstamp, tp->rcvq_space.time);
|
||||
if (time < (tp->rcv_rtt_est.rtt_us >> 3) || tp->rcv_rtt_est.rtt_us == 0)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue