From nobody Sat Feb 24 16:15:40 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ThsRx3t0vz5B541; Sat, 24 Feb 2024 16:15:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ThsRx0gDZz4Z0Q; Sat, 24 Feb 2024 16:15:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708791341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DsQArroa97APqVUYrk0GLiz4dzA5+yDN30UTwwv2PEo=; b=DqJ/xYwq6H8ZbsBn8vsZTNg9Na1rKGz4By/14ltcf23b30mtgBgTHpqbQCLtjRrbzYNDJf LHyMsMw4MD5TdJwJlP5v/Z6Px31W1xM8vclkVZaUTYnBafSJm+j5Sh7bwB2zuClK+oEtTk GIZR13W5PrlA9STcJRfNQUmd9McgdFMX6FxkfDZt6u4yERPebR0AcbSv8NlD5uBrzCEjfO Fbnlm/owW6ua+Dm5Tw8vF+bijpRURixcQWS1rg5Jt/m0Y4fYSmVBvrFKbEXaehCgGbxWGt 1L3HmfUiS1YPXTofS9W6PHjGRgVoZTiO/xBRvsTno/UISDbW5FoADpTITsw22A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708791341; a=rsa-sha256; cv=none; b=k1yhhdIfUVesjOQMSi7VlOq5v8J/LEsdJAaz9l1CwYxe+a0YT8e04T2UOMx1dOvl2Fp3Zh e3gI72T52MNTVnDnAGYJHJP2j9+oEGeyCGWfWmloiR5Mp+YcRW13X2Q/UasLQM3cEomEUk 6CGGocwHGkOPYeLsvSOPO7UkudzzC78YL1VmgyKmYmBm7hdWzOehBnlO1Ud/ozkEBsaj6e k+vY+E7n8Xl1Q1NQlkDBAqaHYaRPmlgT8Q7I4sjidmCIQAlDrMvbhIFnCLGPVaXbvA7xvM DSYL1DfGDqyPhNaQ1xZ2ELWL5Wtns07m+Vz7vf38GVR0NIE6FTFUDhX5CrisfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708791341; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DsQArroa97APqVUYrk0GLiz4dzA5+yDN30UTwwv2PEo=; b=td3wZunyhA0UlG/3CTVJ8dfhWNwOGZmhtofTzZxpw9H8qZLIUw/hGhaaxWea+4hCaRgJZ5 48Crx8yP0yvarYJn5bMHzW0YQLKnBkjCIC27UgbG8WscEiOYTfRMKKvzjJYs0M9/odQeM4 hLI39GnsFfKtOkK/Yp9YvutAOefxByJTNByrbzbHeiILuHwgN4i8MFDFzj/Nsfy+CRbczc bSnV7ZbxL+vio+2jssj22BjSSdQlzGkLqsH2bIPvBETJ+ANF3+q2KUhAAapEorrdIEVC/s 2CCidmIpGfpxU55jZWNk8fvEk/npe3U/PkqwMDaGNmTctCKwTgvzErYv8yjaCw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ThsRw6t2Fz15cB; Sat, 24 Feb 2024 16:15:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41OGFeIo091852; Sat, 24 Feb 2024 16:15:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41OGFeid091849; Sat, 24 Feb 2024 16:15:40 GMT (envelope-from git) Date: Sat, 24 Feb 2024 16:15:40 GMT Message-Id: <202402241615.41OGFeid091849@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Richard Scheffenegger Subject: git: 038699a8f18a - main - tcp: cubic - restart epoch after RTO List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rscheff X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 038699a8f18a0a651ee06b85fa1dbbee1eab56f1 Auto-Submitted: auto-generated The branch main has been updated by rscheff: URL: https://cgit.FreeBSD.org/src/commit/?id=038699a8f18a0a651ee06b85fa1dbbee1eab56f1 commit 038699a8f18a0a651ee06b85fa1dbbee1eab56f1 Author: Richard Scheffenegger AuthorDate: 2024-02-24 16:07:25 +0000 Commit: Richard Scheffenegger CommitDate: 2024-02-24 16:07:46 +0000 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 --- sys/netinet/cc/cc_cubic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netinet/cc/cc_cubic.c b/sys/netinet/cc/cc_cubic.c index a9c7592b80ca..b4050326ae31 100644 --- a/sys/netinet/cc/cc_cubic.c +++ b/sys/netinet/cc/cc_cubic.c @@ -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)) {