Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 May 2020 02:34:59 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r360751 - stable/11/sys/netinet
Message-ID:  <202005070234.0472YxRW000365@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Thu May  7 02:34:58 2020
New Revision: 360751
URL: https://svnweb.freebsd.org/changeset/base/360751

Log:
  MFC r355265: Restart RTT measurement
  
  When changing the MTU of an SCTP path, not only cancel all ongoing
  RTT measurements, but also scheldule new ones for the future.
  
  Submitted by:		Julius Flohr
  Differential Revision:	https://reviews.freebsd.org/D22547

Modified:
  stable/11/sys/netinet/sctp_usrreq.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet/sctp_usrreq.c
==============================================================================
--- stable/11/sys/netinet/sctp_usrreq.c	Thu May  7 02:31:24 2020	(r360750)
+++ stable/11/sys/netinet/sctp_usrreq.c	Thu May  7 02:34:58 2020	(r360751)
@@ -138,7 +138,10 @@ sctp_pathmtu_adjustment(struct sctp_tcb *stcb, uint16_
 					    chk->rec.data.tsn);
 				}
 				/* Clear any time so NO RTT is being done */
-				chk->do_rtt = 0;
+				if (chk->do_rtt == 1) {
+					chk->do_rtt = 0;
+					chk->whoTo->rto_needed = 1;
+				}
 			}
 		}
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005070234.0472YxRW000365>