mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
tcp: cubic - restart epoch after RTO
This is a migitation to avoid sudden extreme jumps in cwnd, as t_epoch can be very out of date after an RTO. Per RFC9438, sec 4.8, t_epoch is to be reset whenever cwnd grows beyond ssthresh (CC phase transitions from slow start to congestion avoidance), to be fixed with the upcoming cc_cubic changes. MFC after: 3 days Reviewed By: cc, #transport Sponsored by: NetApp, Inc Differential Revision: https://reviews.freebsd.org/D44023
This commit is contained in:
parent
40fdc6d25f
commit
038699a8f1
1 changed files with 1 additions and 0 deletions
|
|
@ -270,6 +270,7 @@ cubic_ack_received(struct cc_var *ccv, ccsignal_t type)
|
|||
cubic_data->flags &= ~(CUBICFLAG_RTO_EVENT |
|
||||
CUBICFLAG_IN_SLOWSTART);
|
||||
cubic_data->W_max = CCV(ccv, snd_cwnd);
|
||||
cubic_data->t_epoch = ticks;
|
||||
cubic_data->K = 0;
|
||||
} else if (cubic_data->flags & (CUBICFLAG_IN_SLOWSTART |
|
||||
CUBICFLAG_IN_APPLIMIT)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue