Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Nov 2019 11:57:12 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354773 - head/sys/netinet/cc
Message-ID:  <201911161157.xAGBvCRm006096@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911161157.xAGBvCRm006096>