diff options
| author | Eric Dumazet <[email protected]> | 2025-02-07 15:28:28 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-02-11 12:07:59 +0000 |
| commit | 48b69b4c7e5d74ad66e5214ae8cbdae0b9ea154c (patch) | |
| tree | ac0cd64274e42abfd058fc0fd507a046b0d043d5 /net/ipv4/tcp_ipv4.c | |
| parent | tcp: add a @pace_delay parameter to tcp_reset_xmit_timer() (diff) | |
| download | kernel-48b69b4c7e5d74ad66e5214ae8cbdae0b9ea154c.tar.gz kernel-48b69b4c7e5d74ad66e5214ae8cbdae0b9ea154c.zip | |
tcp: use tcp_reset_xmit_timer()
In order to reduce TCP_RTO_MAX occurrences, replace:
inet_csk_reset_xmit_timer(sk, what, when, TCP_RTO_MAX)
With:
tcp_reset_xmit_timer(sk, what, when, false);
Signed-off-by: Eric Dumazet <[email protected]>
Reviewed-by: Jason Xing <[email protected]>
Reviewed-by: Neal Cardwell <[email protected]>
Reviewed-by: Kuniyuki Iwashima <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
| -rw-r--r-- | net/ipv4/tcp_ipv4.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index cc2b5194a18d..e065f7097611 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -465,8 +465,7 @@ void tcp_ld_RTO_revert(struct sock *sk, u32 seq) remaining = icsk->icsk_rto - usecs_to_jiffies(delta_us); if (remaining > 0) { - inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS, - remaining, TCP_RTO_MAX); + tcp_reset_xmit_timer(sk, ICSK_TIME_RETRANS, remaining, false); } else { /* RTO revert clocked out retransmission. * Will retransmit now. |
