# \[PATCH stable 4.19 0/4\] tcp: fix the timeout value calculated by tcp\_model\_timeout() is not accurate

- From: Qiumiao Zhang \<hidden\>
- Date: 2021-09-26 07:19:15 
- List: netdev
- Page: https://ratatoskr.run/netdev/2021/09/1521832
- Thread: https://ratatoskr.run/stable/2021/09/1521832/t.md

```text
This patch series is present in v5.15 and fixes the problem that the
timeout value calculated by tcp_model_timeout() is not accurate.

Pseudo-Shortlog of commits:

Eric Dumazet [ref]
    tcp: address problems caused by EDT misshaps

Yuchung Cheng [ref]
    tcp: always set retrans_stamp on recovery

Yuchung Cheng [ref]
    tcp: create a helper to model exponential backoff

Eric Dumazet [ref]
    tcp: adjust rto_base in retransmits_timed_out()

 net/ipv4/tcp_input.c  | 16 ++++++-----
 net/ipv4/tcp_output.c |  9 +++----
 net/ipv4/tcp_timer.c  | 63 ++++++++++++++++++++-----------------------
 3 files changed, 43 insertions(+), 45 deletions(-)

-- 
2.19.1

```
