svn commit: r332828 - stable/11/sys/netinet
Jonathan T. Looney
jtl at FreeBSD.org
Fri Apr 20 15:41:34 UTC 2018
Author: jtl
Date: Fri Apr 20 15:41:33 2018
New Revision: 332828
URL: https://svnweb.freebsd.org/changeset/base/332828
Log:
MFC r306768:
If the new window size is less than the old window size, skip the
calculations to check if we should advertise a larger window.
Modified:
stable/11/sys/netinet/tcp_output.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/netinet/tcp_output.c
==============================================================================
--- stable/11/sys/netinet/tcp_output.c Fri Apr 20 15:35:58 2018 (r332827)
+++ stable/11/sys/netinet/tcp_output.c Fri Apr 20 15:41:33 2018 (r332828)
@@ -677,10 +677,11 @@ after_sack_rexmit:
oldwin = 0;
/*
- * If the new window size ends up being the same as the old
- * size when it is scaled, then don't force a window update.
+ * If the new window size ends up being the same as or less
+ * than the old size when it is scaled, then don't force
+ * a window update.
*/
- if (oldwin >> tp->rcv_scale == (adv + oldwin) >> tp->rcv_scale)
+ if (oldwin >> tp->rcv_scale >= (adv + oldwin) >> tp->rcv_scale)
goto dontupdate;
if (adv >= (long)(2 * tp->t_maxseg) &&
More information about the svn-src-stable
mailing list