mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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 <edumazet@google.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Reviewed-by: Neal Cardwell <ncardwell@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
committed by
Paolo Abeni
parent
7baa030155
commit
48b69b4c7e
@@ -274,8 +274,8 @@ static struct sock *tcp_fastopen_create_child(struct sock *sk,
|
||||
* because it's been added to the accept queue directly.
|
||||
*/
|
||||
req->timeout = tcp_timeout_init(child);
|
||||
inet_csk_reset_xmit_timer(child, ICSK_TIME_RETRANS,
|
||||
req->timeout, TCP_RTO_MAX);
|
||||
tcp_reset_xmit_timer(child, ICSK_TIME_RETRANS,
|
||||
req->timeout, false);
|
||||
|
||||
refcount_set(&req->rsk_refcnt, 2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user