tcp: use current time in tcp_rcv_space_adjust()
Subsystems (3)
PATCH 1/1 tcp: use current time in tcp_rcv_space_adjust()
From: Eric Dumazet <[email protected]>
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.
---
net/ipv4/tcp_input.c | 1 +
1 file changed, 1 insertion(+)
net/ipv4/tcp_input.c +1 -0
@@ -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 ;
Quoted 5 lines · Eric Dumazet
From: Eric Dumazet <[email protected]>
When I switched
rcv_rtt_estto high resolution timestamps, I forgot thattp->tcp_mstampneeded to be refreshed intcp_rcv_space_adjust()
Quoted 8 lines
Using an old timestamp leads to autotuning lags.
Fixes 645f4c6f2ebd ("tcp: switch rcv_rtt_est and rcvq_space to high resolution timestamps")Signed-off-by Eric Dumazet <[email protected]>Cc Wei Wang <[email protected]>Cc Neal Cardwell <[email protected]>Cc Yuchung Cheng <[email protected]>---
neal
David Miller
maintainerFrom: Eric Dumazet <[email protected]>
Date: Wed, 06 Dec 2017 11:08:19 -0800
Quoted 9 lines
From: Eric Dumazet <[email protected]>
When I switched
rcv_rtt_estto high resolution timestamps, I forgot thattp->tcp_mstampneeded to be refreshed intcp_rcv_space_adjust()Using an old timestamp leads to autotuning lags.
Fixes 645f4c6f2ebd ("tcp: switch rcv_rtt_est and rcvq_space to high resolution timestamps")Signed-off-by Eric Dumazet <[email protected]>
Applied and queued up for -stable, thanks Eric.