From nobody Wed Feb 28 00:26:47 2024 X-Original-To: dev-commits-src-all@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 4TkwCC4qYcz5C1GC; Wed, 28 Feb 2024 00:26: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 4TkwCC4DL0z4Twc; Wed, 28 Feb 2024 00:26:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709080007; 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=ysw7Macow30xh6Cg7iYK97U9irZtv0mpsZ4QDfnvSyY=; b=OvLkimkp5d3raEeCspKJ4pShN5bja25xWweNO3I+/12qEkwPpUKPWz1ip/oGjIc2clSedf LdR7KT/cSsEWH6s21I8CDM4TtgjHyKS47Nv5dHGpOvzwfWN5LfQpDVBYRykWW3qd3Ww5vn UoZB0qpyXEUibnfGRW5GKgRa5Si5d5YGbRs6+TaqJ5Z9V73p+iE5mSErSELE8iIGpIXiVh Wt1o7r0mYVV93K4AXeR4SKm4BWdLT3Jwk9g0LLY2wgf3XJSDbO3aO8TFtFbmzOSdEYLpIg bDY1Ng3HTjrfTS0C2Sm4KlTzSQmH62rv+o4iQciv2vU+bmuHf9WjlOMfPmMEqQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709080007; a=rsa-sha256; cv=none; b=hLQhHyjBdDhlRHabOYXj2sELi8MdgnWRZN/95hiVOD20HazMfECISecTU27AOZfai8mHXO xULmDT7htzOUpT/YNRA13+1xKOSMrpy10tCFfCBaowyK0snWddXiRDxCncc+z6jITjcQa3 WS7BfT2RWLmCpMa5VlItuuhElGpzJFuMkj71XhnyjRHYzvs61poTRAL+uBNHq1GPivr4FQ iSma8SDZgHf2gwCT++8JEEhZ9pIlD+t4FtU9+0uwMOW0lyQA92bZhH6n6NQItF67L2HGJf QlUY/t46nShac1OsLpGNd0A9HmQtfIuzA8hcpg0MKukhzURJQ3CGsGXNXL+XOg== 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=1709080007; 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=ysw7Macow30xh6Cg7iYK97U9irZtv0mpsZ4QDfnvSyY=; b=Fzq5hVsGHO95rEBBFK5ZxKqdeNkMGGYBkqHDGVSXrQkiH3Xp5bJAciI32JM8LYf840S6ur XbB2Kj/64dnm8JlRB6rQLVIcUpechBWDzP65DvNUml3AdeukRAHXdMZHKqFog58pMqdT+J 54hlTuJ7YKXXeJd8ZJOZMONTDBI5yhgFrq42hvnBlbjp0eJH7eYPXXMjJHIeNMwzrHY7Y5 hDV8NYZLTLcMY+oKq0ZmEKckXl7dSidX2Z3Me+xuHSYsxZDIMNL7Fp1lQQ20zlkVUChywA LUNDcSbhPT0FjU/oIM1r0iN4Ph5GFXV2aZhNAf1fhLxOQkfgirGLZT3c8Utf/w== 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 4TkwCC3HhtzbPL; Wed, 28 Feb 2024 00:26: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 41S0QlcF065315; Wed, 28 Feb 2024 00:26:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41S0QlxD065313; Wed, 28 Feb 2024 00:26:47 GMT (envelope-from git) Date: Wed, 28 Feb 2024 00:26:47 GMT Message-Id: <202402280026.41S0QlxD065313@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: e6e28a73fc21 - stable/13 - tcp: cubic - restart epoch after RTO List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/13 X-Git-Reftype: branch X-Git-Commit: e6e28a73fc2149732b2dfc75d4a565e96b661018 Auto-Submitted: auto-generated The branch stable/13 has been updated by rscheff: URL: https://cgit.FreeBSD.org/src/commit/?id=e6e28a73fc2149732b2dfc75d4a565e96b661018 commit e6e28a73fc2149732b2dfc75d4a565e96b661018 Author: Richard Scheffenegger AuthorDate: 2024-02-24 16:07:25 +0000 Commit: Richard Scheffenegger CommitDate: 2024-02-28 00:23:48 +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 884778c13b2a..c2b465abd10d 100644 --- a/sys/netinet/cc/cc_cubic.c +++ b/sys/netinet/cc/cc_cubic.c @@ -155,6 +155,7 @@ cubic_ack_received(struct cc_var *ccv, uint16_t type) cubic_data->flags &= ~(CUBICFLAG_RTO_EVENT | CUBICFLAG_IN_SLOWSTART); cubic_data->max_cwnd = CCV(ccv, snd_cwnd); + cubic_data->t_last_cong = ticks; cubic_data->K = 0; } else if (cubic_data->flags & (CUBICFLAG_IN_SLOWSTART | CUBICFLAG_IN_APPLIMIT)) {