git: e6e28a73fc21 - stable/13 - tcp: cubic - restart epoch after RTO

From: Richard Scheffenegger <rscheff_at_FreeBSD.org>
Date: Wed, 28 Feb 2024 00:26:47 UTC
The branch stable/13 has been updated by rscheff:

URL: https://cgit.FreeBSD.org/src/commit/?id=e6e28a73fc2149732b2dfc75d4a565e96b661018

commit e6e28a73fc2149732b2dfc75d4a565e96b661018
Author:     Richard Scheffenegger <rscheff@FreeBSD.org>
AuthorDate: 2024-02-24 16:07:25 +0000
Commit:     Richard Scheffenegger <rscheff@FreeBSD.org>
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)) {