Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2020 20:38:56 +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-12@freebsd.org
Subject:   svn commit: r362862 - stable/12/sys/netinet
Message-ID:  <202007012038.061Kcusg082651@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Wed Jul  1 20:38:56 2020
New Revision: 362862
URL: https://svnweb.freebsd.org/changeset/base/362862

Log:
  MFC r355265:
  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/12/sys/netinet/sctp_usrreq.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/netinet/sctp_usrreq.c
==============================================================================
--- stable/12/sys/netinet/sctp_usrreq.c	Wed Jul  1 20:37:06 2020	(r362861)
+++ stable/12/sys/netinet/sctp_usrreq.c	Wed Jul  1 20:38:56 2020	(r362862)
@@ -143,7 +143,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?202007012038.061Kcusg082651>