diff options
Diffstat (limited to 'net/ipv4/tcp_timer.c')
-rw-r--r-- | net/ipv4/tcp_timer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index d47c1b4421a3..b78aac30c498 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c | |||
@@ -318,7 +318,7 @@ static void tcp_fastopen_synack_timer(struct sock *sk) | |||
318 | req = tcp_sk(sk)->fastopen_rsk; | 318 | req = tcp_sk(sk)->fastopen_rsk; |
319 | req->rsk_ops->syn_ack_timeout(sk, req); | 319 | req->rsk_ops->syn_ack_timeout(sk, req); |
320 | 320 | ||
321 | if (req->retrans >= max_retries) { | 321 | if (req->num_timeout >= max_retries) { |
322 | tcp_write_err(sk); | 322 | tcp_write_err(sk); |
323 | return; | 323 | return; |
324 | } | 324 | } |
@@ -327,10 +327,10 @@ static void tcp_fastopen_synack_timer(struct sock *sk) | |||
327 | * regular retransmit because if the child socket has been accepted | 327 | * regular retransmit because if the child socket has been accepted |
328 | * it's not good to give up too easily. | 328 | * it's not good to give up too easily. |
329 | */ | 329 | */ |
330 | req->rsk_ops->rtx_syn_ack(sk, req, NULL); | 330 | inet_rtx_syn_ack(sk, req); |
331 | req->retrans++; | 331 | req->num_timeout++; |
332 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS, | 332 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS, |
333 | TCP_TIMEOUT_INIT << req->retrans, TCP_RTO_MAX); | 333 | TCP_TIMEOUT_INIT << req->num_timeout, TCP_RTO_MAX); |
334 | } | 334 | } |
335 | 335 | ||
336 | /* | 336 | /* |