From nobody Tue Feb 27 11:02:46 2024 X-Original-To: dev-commits-src-branches@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 4TkZMW21qyz5CxgJ; Tue, 27 Feb 2024 11:02:47 +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 4TkZMW1W1vz41Jm; Tue, 27 Feb 2024 11:02:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709031767; 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=YvMoESlDPi1BS63RXWLBnM7GzRofEaYJOoU4DFpqFl0=; b=RkLW3qtmWmTl0u9D1+IiAc30HllUFYSuU8EoGDWPzvGsCQOhLqeEv4afAjWdL74LeZ3GlN bCgC7yMZRcYbHjIMq3kiGRIPoYOubD/gDWVH9nfWVX0dpgI1/nx0KAzie56mQEEXp0gSMc jr6Ptm+0jdcZbXgFLE9Gh+RIKBSOs7rcFDB3b+ueNv4tLeQAy65bdZZkhMaCTVOv4d1Z8d z61BEpKgcD3alKKVEWvly+32Ci0CAafZoTEygbmgjMbHK12FkaYJvxb8isybvC6btLYLTf rno2paMmVCdCzQroxUMAG1h3P1hZktBouY9vSRQqpnfcFZF9unVcwadKThNrng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709031767; a=rsa-sha256; cv=none; b=c+r+ANHsbFNVPgiZoZChQKnhzCZPbiKJwkv/+Pio0LPFvVHSl72VXmXfkcJeb7IFfMVREw oijmt5+6jJYTdWxqZ+VKTsO15cp+Blb8i8WR4T13e62XdPjWSUfGl2vsnVg0t+y+FaWJE1 JdAoet7uPdGwEtBCFR6FEEe5b8u6iZVU5odH9cuS2t+PcrrsQizhNyNNr8Xb7XOz1adu7P bemoETjaXNLR0Uy5dGYtzX+JNNRiCNWZoSgWCsuK2jiPLOqxikUhg8rWFOjkuRSe52QwXr kOu1W0MnnMZ6KUPTgQ6mqnLStlGN+cfYpeWWwGwMjD7krYCLz3IXtKg+xXCxKg== 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=1709031767; 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=YvMoESlDPi1BS63RXWLBnM7GzRofEaYJOoU4DFpqFl0=; b=HWz9NZMijJPXiob4Fhs8IRmdNhy63f4XRJtIhb0Y6Y3qKmMFM1SRxTlnarqMZfIAETQATj GQvy/NY6exOLJa+fIvPvgn1xwbblQGA0MiIpp5YLbWblFomfrUHMbQ6n0CHJ9+YkVAN1d9 jEVmwzVV03ihHRCi+ouogxP/xcs6f2CyNqwVmTXHjZiQF1cS5wMqU4m15XApSa7mNR2tIp 44tfvRkZdhSmqJJqgaqGWCnVzcskwJFuWKOQR+EhvClhF3MJsXPStvtoGsio7kg/qsi724 404uleYBe1xWqD0hsUfC4myWLx8NAsUW109Mx/TGoXy254O/R0ja804ZgqaOrw== 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 4TkZMW0cJnz18rS; Tue, 27 Feb 2024 11:02:47 +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 41RB2kPn014292; Tue, 27 Feb 2024 11:02:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41RB2kqP014289; Tue, 27 Feb 2024 11:02:46 GMT (envelope-from git) Date: Tue, 27 Feb 2024 11:02:46 GMT Message-Id: <202402271102.41RB2kqP014289@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Richard Scheffenegger Subject: git: f3f559705a05 - stable/14 - tcp: cubic - restart epoch after RTO List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: f3f559705a05b65c99bdf02520475d595b111503 Auto-Submitted: auto-generated The branch stable/14 has been updated by rscheff: URL: https://cgit.FreeBSD.org/src/commit/?id=f3f559705a05b65c99bdf02520475d595b111503 commit f3f559705a05b65c99bdf02520475d595b111503 Author: Richard Scheffenegger AuthorDate: 2024-02-24 16:07:25 +0000 Commit: Richard Scheffenegger CommitDate: 2024-02-27 11:00:56 +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 (cherry picked from commit 038699a8f18a0a651ee06b85fa1dbbee1eab56f1) --- 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 031091c3b777..4579e7d3654e 100644 --- a/sys/netinet/cc/cc_cubic.c +++ b/sys/netinet/cc/cc_cubic.c @@ -271,6 +271,7 @@ cubic_ack_received(struct cc_var *ccv, uint16_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)) {