svn commit: r354773 - head/sys/netinet/cc
Michael Tuexen
tuexen at FreeBSD.org
Sat Nov 16 11:57:13 UTC 2019
Author: tuexen
Date: Sat Nov 16 11:57:12 2019
New Revision: 354773
URL: https://svnweb.freebsd.org/changeset/base/354773
Log:
Improve TCP CUBIC specific after idle reaction.
The adjustments are inspired by the Linux stack, which has had a
functionally equivalent implementation for more than a decade now.
Submitted by: Richard Scheffenegger
Reviewed by: Cheng Cui
Differential Revision: https://reviews.freebsd.org/D18982
Modified:
head/sys/netinet/cc/cc_cubic.c
Modified: head/sys/netinet/cc/cc_cubic.c
==============================================================================
--- head/sys/netinet/cc/cc_cubic.c Sat Nov 16 11:37:26 2019 (r354772)
+++ head/sys/netinet/cc/cc_cubic.c Sat Nov 16 11:57:12 2019 (r354773)
@@ -190,6 +190,8 @@ cubic_ack_received(struct cc_var *ccv, uint16_t type)
if (cubic_data->num_cong_events == 0 &&
cubic_data->max_cwnd < CCV(ccv, snd_cwnd))
cubic_data->max_cwnd = CCV(ccv, snd_cwnd);
+ cubic_data->K = cubic_k(cubic_data->max_cwnd /
+ CCV(ccv, t_maxseg));
}
}
}
@@ -205,6 +207,9 @@ cubic_after_idle(struct cc_var *ccv)
struct cubic *cubic_data;
cubic_data = ccv->cc_data;
+
+ cubic_data->max_cwnd = ulmax(cubic_data->max_cwnd, CCV(ccv, snd_cwnd));
+ cubic_data->K = cubic_k(cubic_data->max_cwnd / CCV(ccv, t_maxseg));
newreno_cc_algo.after_idle(ccv);
cubic_data->t_last_cong = ticks;
More information about the svn-src-all
mailing list