git: 6170c93c03fa - stable/13 - tcp rack: improve initialisation of retransmit timeout
Michael Tuexen
tuexen at FreeBSD.org
Wed Jun 9 00:03:24 UTC 2021
The branch stable/13 has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=6170c93c03fa394eae81ce20f969b6a53bc68415
commit 6170c93c03fa394eae81ce20f969b6a53bc68415
Author: Michael Tuexen <tuexen at FreeBSD.org>
AuthorDate: 2021-05-12 15:58:56 +0000
Commit: Michael Tuexen <tuexen at FreeBSD.org>
CommitDate: 2021-06-09 00:02:39 +0000
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
Sponsored by: Netflix, Inc.
(cherry picked from commit 251842c63927fc4af63bdc61989bbfbf3823c679)
---
sys/netinet/tcp_stacks/rack.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/sys/netinet/tcp_stacks/rack.c b/sys/netinet/tcp_stacks/rack.c
index e9d3c6b95d91..48b278806410 100644
--- a/sys/netinet/tcp_stacks/rack.c
+++ b/sys/netinet/tcp_stacks/rack.c
@@ -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
More information about the dev-commits-src-all
mailing list