tcp: allow multiple rxt rescues during recovery

Type: improvement

Change-Id: Ia8d7cd6ff9b1449d986d514d9556cbf803deb670
Signed-off-by: Florin Coras <fcoras@cisco.com>
This commit is contained in:
Florin Coras
2023-11-25 09:00:44 -08:00
committed by Dave Barach
parent ddf6cec370
commit a2be1cffbe

View File

@ -1279,6 +1279,7 @@ tcp_cc_init_rxt_timeout (tcp_connection_t * tc)
tc->cwnd_acc_bytes = 0; tc->cwnd_acc_bytes = 0;
tc->tr_occurences += 1; tc->tr_occurences += 1;
tc->sack_sb.reorder = TCP_DUPACK_THRESHOLD; tc->sack_sb.reorder = TCP_DUPACK_THRESHOLD;
tc->sack_sb.rescue_rxt = tc->snd_una - 1;
tcp_recovery_on (tc); tcp_recovery_on (tc);
} }
@ -1783,8 +1784,7 @@ tcp_retransmit_sack (tcp_worker_ctx_t * wrk, tcp_connection_t * tc,
goto done; goto done;
} }
if (tcp_in_recovery (tc) || !can_rescue if (!can_rescue || scoreboard_rescue_rxt_valid (sb, tc))
|| scoreboard_rescue_rxt_valid (sb, tc))
break; break;
/* If rescue rxt undefined or less than snd_una then one segment of /* If rescue rxt undefined or less than snd_una then one segment of