@@ -472,8 +472,8 @@ static void tcp_fastopen_synack_timer(struct sock *sk, struct request_sock *req)
472472 tcp_update_rto_stats (sk );
473473 if (!tp -> retrans_stamp )
474474 tp -> retrans_stamp = tcp_time_stamp_ts (tp );
475- inet_csk_reset_xmit_timer (sk , ICSK_TIME_RETRANS ,
476- req -> timeout << req -> num_timeout , TCP_RTO_MAX );
475+ tcp_reset_xmit_timer (sk , ICSK_TIME_RETRANS ,
476+ req -> timeout << req -> num_timeout , false );
477477}
478478
479479static bool tcp_rtx_probe0_timed_out (const struct sock * sk ,
@@ -617,9 +617,9 @@ void tcp_retransmit_timer(struct sock *sk)
617617 /* Retransmission failed because of local congestion,
618618 * Let senders fight for local resources conservatively.
619619 */
620- inet_csk_reset_xmit_timer (sk , ICSK_TIME_RETRANS ,
621- TCP_RESOURCE_PROBE_INTERVAL ,
622- TCP_RTO_MAX );
620+ tcp_reset_xmit_timer (sk , ICSK_TIME_RETRANS ,
621+ TCP_RESOURCE_PROBE_INTERVAL ,
622+ false );
623623 goto out ;
624624 }
625625
@@ -666,8 +666,8 @@ void tcp_retransmit_timer(struct sock *sk)
666666 icsk -> icsk_backoff ++ ;
667667 icsk -> icsk_rto = min (icsk -> icsk_rto << 1 , TCP_RTO_MAX );
668668 }
669- inet_csk_reset_xmit_timer (sk , ICSK_TIME_RETRANS ,
670- tcp_clamp_rto_to_user_timeout (sk ), TCP_RTO_MAX );
669+ tcp_reset_xmit_timer (sk , ICSK_TIME_RETRANS ,
670+ tcp_clamp_rto_to_user_timeout (sk ), false );
671671 if (retransmits_timed_out (sk , READ_ONCE (net -> ipv4 .sysctl_tcp_retries1 ) + 1 , 0 ))
672672 __sk_dst_reset (sk );
673673
0 commit comments