svn commit: r355265 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sun Dec 1 17:35:37 UTC 2019
Author: tuexen
Date: Sun Dec 1 17:35:36 2019
New Revision: 355265
URL: https://svnweb.freebsd.org/changeset/base/355265
Log:
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
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D22547
Modified:
head/sys/netinet/sctp_usrreq.c
Modified: head/sys/netinet/sctp_usrreq.c
==============================================================================
--- head/sys/netinet/sctp_usrreq.c Sun Dec 1 16:14:44 2019 (r355264)
+++ head/sys/netinet/sctp_usrreq.c Sun Dec 1 17:35:36 2019 (r355265)
@@ -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;
+ }
}
}
}
More information about the svn-src-all
mailing list