From owner-svn-src-head@freebsd.org Sat Nov 16 10:51:15 2019 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AEAB51C1E43; Sat, 16 Nov 2019 10:51:15 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47FX8223Q5z4G1x; Sat, 16 Nov 2019 10:51:13 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id xAGApCtW056768; Sat, 16 Nov 2019 02:51:12 -0800 (PST) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id xAGApCnH056767; Sat, 16 Nov 2019 02:51:12 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <201911161051.xAGApCnH056767@gndrsh.dnsmgr.net> Subject: Re: svn commit: r354708 - head/sys/netinet/cc In-Reply-To: <0a9e49e9-b81a-3367-2d7d-6d748e83f36d@FreeBSD.org> To: koobs@freebsd.org Date: Sat, 16 Nov 2019 02:51:12 -0800 (PST) CC: Michael Tuexen , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 47FX8223Q5z4G1x X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@gndrsh.dnsmgr.net has no SPF policy when checking 69.59.192.140) smtp.mailfrom=freebsd@gndrsh.dnsmgr.net X-Spamd-Result: default: False [0.02 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[rgrimes@freebsd.org]; NEURAL_HAM_MEDIUM(-0.13)[-0.129,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.79)[-0.791,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; RCPT_COUNT_FIVE(0.00)[5]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.04)[ip: (0.14), ipnet: 69.59.192.0/19(0.07), asn: 13868(0.03), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Nov 2019 10:51:15 -0000 > On 15/11/2019 3:28 am, Michael Tuexen wrote: > > Author: tuexen > > Date: Thu Nov 14 16:28:02 2019 > > New Revision: 354708 > > URL: https://svnweb.freebsd.org/changeset/base/354708 > > > > Log: > > For idle TCP sessions using the CUBIC congestio control, reset ssthresh > > to the higher of the previous ssthresh or 3/4 of the prior cwnd. > > > > Submitted by: Richard Scheffenegger > > Reviewed by: Cheng Cui > > Differential Revision: https://reviews.freebsd.org/D18982 > > > > Modified: > > head/sys/netinet/cc/cc_cubic.c > > Are stable/12,11 affected by this too? I am sitting here with Richard at IETF and the answer is yes, this is an oversight since the code came into FreeBSD, this commit should be merged to back to 11 and 12. > > Modified: head/sys/netinet/cc/cc_cubic.c > > ============================================================================== > > --- head/sys/netinet/cc/cc_cubic.c Thu Nov 14 15:10:01 2019 (r354707) > > +++ head/sys/netinet/cc/cc_cubic.c Thu Nov 14 16:28:02 2019 (r354708) > > @@ -78,6 +78,7 @@ static int cubic_mod_init(void); > > static void cubic_post_recovery(struct cc_var *ccv); > > static void cubic_record_rtt(struct cc_var *ccv); > > static void cubic_ssthresh_update(struct cc_var *ccv); > > +static void cubic_after_idle(struct cc_var *ccv); > > > > struct cubic { > > /* Cubic K in fixed point form with CUBIC_SHIFT worth of precision. */ > > @@ -112,6 +113,7 @@ struct cc_algo cubic_cc_algo = { > > .conn_init = cubic_conn_init, > > .mod_init = cubic_mod_init, > > .post_recovery = cubic_post_recovery, > > + .after_idle = cubic_after_idle, > > }; > > > > static void > > @@ -192,7 +194,24 @@ cubic_ack_received(struct cc_var *ccv, uint16_t type) > > } > > } > > > > +/* > > + * This is a Cubic specific implementation of after_idle. > > + * - Reset cwnd by calling New Reno implementation of after_idle. > > + * - Reset t_last_cong. > > + */ > > static void > > +cubic_after_idle(struct cc_var *ccv) > > +{ > > + struct cubic *cubic_data; > > + > > + cubic_data = ccv->cc_data; > > + > > + newreno_cc_algo.after_idle(ccv); > > + cubic_data->t_last_cong = ticks; > > +} > > + > > + > > +static void > > cubic_cb_destroy(struct cc_var *ccv) > > { > > free(ccv->cc_data, M_CUBIC); > > @@ -287,9 +306,6 @@ cubic_conn_init(struct cc_var *ccv) > > static int > > cubic_mod_init(void) > > { > > - > > - cubic_cc_algo.after_idle = newreno_cc_algo.after_idle; > > - > > return (0); > > } > > > > _______________________________________________ > > svn-src-head@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/svn-src-head > > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org" -- Rod Grimes rgrimes@freebsd.org