diff options
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 53b4c5a3113b..3a40584cb473 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -6089,6 +6089,7 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb) | |||
6089 | * so release it. | 6089 | * so release it. |
6090 | */ | 6090 | */ |
6091 | if (req) { | 6091 | if (req) { |
6092 | tcp_try_undo_loss(sk, false); | ||
6092 | inet_csk(sk)->icsk_retransmits = 0; | 6093 | inet_csk(sk)->icsk_retransmits = 0; |
6093 | reqsk_fastopen_remove(sk, req, false); | 6094 | reqsk_fastopen_remove(sk, req, false); |
6094 | /* Re-arm the timer because data may have been sent out. | 6095 | /* Re-arm the timer because data may have been sent out. |
@@ -6143,6 +6144,8 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb) | |||
6143 | * our SYNACK so stop the SYNACK timer. | 6144 | * our SYNACK so stop the SYNACK timer. |
6144 | */ | 6145 | */ |
6145 | if (req) { | 6146 | if (req) { |
6147 | tcp_try_undo_loss(sk, false); | ||
6148 | inet_csk(sk)->icsk_retransmits = 0; | ||
6146 | /* We no longer need the request sock. */ | 6149 | /* We no longer need the request sock. */ |
6147 | reqsk_fastopen_remove(sk, req, false); | 6150 | reqsk_fastopen_remove(sk, req, false); |
6148 | tcp_rearm_rto(sk); | 6151 | tcp_rearm_rto(sk); |