tcp: update reordering first before detecting loss
Subsystems (3)
PATCH 1/1 tcp: update reordering first before detecting loss
tcp_mark_lost_retrans is not used when FACK is disabled. Since tcp_update_reordering may disable FACK, it should be called first before tcp_mark_lost_retrans.
Signed-off-by Yuchung Cheng <[email protected]>
Signed-off-by Nandita Dukkipati <[email protected]>
Signed-off-by Neal Cardwell <[email protected]>
--- net/ipv4/tcp_input.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
net/ipv4/tcp_input.c +2 -4
@@ -1820,14 +1820,12 @@ advance_sp:for (j =0 ; j < used_sacks; j++) tp->recv_sack_cache[i++] = sp[j]; -tcp_mark_lost_retrans (sk); - -tcp_verify_left_out (tp); -if ((state.reord < tp->fackets_out) && ((inet_csk (sk)->icsk_ca_state != TCP_CA_Loss) || tp->undo_marker))tcp_update_reordering (sk, tp->fackets_out - state.reord,0 ); +tcp_mark_lost_retrans (sk); +tcp_verify_left_out (tp); out: #if FASTRETRANS_DEBUG > 0
Signature · 1 line
2.2.0.rc0.207.ga3a616c
From: Yuchung Cheng <[email protected]>
Date: Wed, 29 Apr 2015 11:28:30 -0700
Quoted 7 lines
tcp_mark_lost_retransis not used when FACK is disabled. Sincetcp_update_reorderingmay disable FACK, it should be called first beforetcp_mark_lost_retrans.Signed-off-by Yuchung Cheng <[email protected]>Signed-off-by Nandita Dukkipati <[email protected]>Signed-off-by Neal Cardwell <[email protected]>
Applied.