svn commit: r347882 - stable/11/sys/netinet/cc
Michael Tuexen
tuexen at FreeBSD.org
Thu May 16 18:29:28 UTC 2019
Author: tuexen
Date: Thu May 16 18:29:25 2019
New Revision: 347882
URL: https://svnweb.freebsd.org/changeset/base/347882
Log:
MFC r347381:
Prevent cwnd to collapse down to 1 MSS after exiting recovery.
This is descrined in RFC 6582, which updates RFC 3782.
Modified:
stable/11/sys/netinet/cc/cc_cubic.c
stable/11/sys/netinet/cc/cc_htcp.c
stable/11/sys/netinet/cc/cc_newreno.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/netinet/cc/cc_cubic.c
==============================================================================
--- stable/11/sys/netinet/cc/cc_cubic.c Thu May 16 18:28:59 2019 (r347881)
+++ stable/11/sys/netinet/cc/cc_cubic.c Thu May 16 18:29:25 2019 (r347882)
@@ -324,7 +324,12 @@ cubic_post_recovery(struct cc_var *ccv)
pipe = CCV(ccv, snd_max) - ccv->curack;
if (pipe < CCV(ccv, snd_ssthresh))
- CCV(ccv, snd_cwnd) = pipe + CCV(ccv, t_maxseg);
+ /*
+ * Ensure that cwnd does not collapse to 1 MSS under
+ * adverse conditions. Implements RFC6582
+ */
+ CCV(ccv, snd_cwnd) = max(pipe, CCV(ccv, t_maxseg)) +
+ CCV(ccv, t_maxseg);
else
/* Update cwnd based on beta and adjusted max_cwnd. */
CCV(ccv, snd_cwnd) = max(1, ((CUBIC_BETA *
Modified: stable/11/sys/netinet/cc/cc_htcp.c
==============================================================================
--- stable/11/sys/netinet/cc/cc_htcp.c Thu May 16 18:28:59 2019 (r347881)
+++ stable/11/sys/netinet/cc/cc_htcp.c Thu May 16 18:29:25 2019 (r347882)
@@ -366,7 +366,12 @@ htcp_post_recovery(struct cc_var *ccv)
pipe = CCV(ccv, snd_max) - ccv->curack;
if (pipe < CCV(ccv, snd_ssthresh))
- CCV(ccv, snd_cwnd) = pipe + CCV(ccv, t_maxseg);
+ /*
+ * Ensure that cwnd down not collape to 1 MSS under
+ * adverse conditions. Implements RFC6582
+ */
+ CCV(ccv, snd_cwnd) = max(pipe, CCV(ccv, t_maxseg)) +
+ CCV(ccv, t_maxseg);
else
CCV(ccv, snd_cwnd) = max(1, ((htcp_data->beta *
htcp_data->prev_cwnd / CCV(ccv, t_maxseg))
Modified: stable/11/sys/netinet/cc/cc_newreno.c
==============================================================================
--- stable/11/sys/netinet/cc/cc_newreno.c Thu May 16 18:28:59 2019 (r347881)
+++ stable/11/sys/netinet/cc/cc_newreno.c Thu May 16 18:29:25 2019 (r347882)
@@ -233,7 +233,12 @@ newreno_post_recovery(struct cc_var *ccv)
pipe = CCV(ccv, snd_max) - ccv->curack;
if (pipe < CCV(ccv, snd_ssthresh))
- CCV(ccv, snd_cwnd) = pipe + CCV(ccv, t_maxseg);
+ /*
+ * Ensure that cwnd does not collapse to 1 MSS under
+ * adverse conditons. Implements RFC6582
+ */
+ CCV(ccv, snd_cwnd) = max(pipe, CCV(ccv, t_maxseg)) +
+ CCV(ccv, t_maxseg);
else
CCV(ccv, snd_cwnd) = CCV(ccv, snd_ssthresh);
}
More information about the svn-src-stable-11
mailing list