tcp rack: improve initialisation of retransmit timeout

When the TCP is in the front states, don't take the slop variable
into account. This improves consistency with the base stack.

Reviewed by:		rrs@
Differential Revision:	https://reviews.freebsd.org/D30230
MFC after:		1 week
Sponsored by:		Netflix, Inc.
This commit is contained in:
Michael Tuexen 2021-05-12 17:58:56 +02:00
parent c0dbc49ab3
commit 251842c639

View File

@ -6606,8 +6606,13 @@ rack_convert_rtts(struct tcpcb *tp)
tp->t_rttvar += frac;
}
}
RACK_TCPT_RANGESET(tp->t_rxtcur, RACK_REXMTVAL(tp),
rack_rto_min, rack_rto_max);
tp->t_rxtcur = RACK_REXMTVAL(tp);
if (TCPS_HAVEESTABLISHED(tp->t_state)) {
tp->t_rxtcur += TICKS_2_USEC(tcp_rexmit_slop);
}
if (tp->t_rxtcur > rack_rto_max) {
tp->t_rxtcur = rack_rto_max;
}
}
static void