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;
+                               }
                        }
                }
        }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to