svn commit: r352267 - stable/12/sys/dev/cxgbe/tom

Navdeep Parhar np at FreeBSD.org
Fri Sep 13 00:53:10 UTC 2019


Author: np
Date: Fri Sep 13 00:53:09 2019
New Revision: 352267
URL: https://svnweb.freebsd.org/changeset/base/352267

Log:
  MFC r351446:
  
  cxgbe/t4_tom: Any invalid scaling factor in the hardware's wsf field
  implies that window scaling is not in use.
  
  Sponsored by:	Chelsio Communications

Modified:
  stable/12/sys/dev/cxgbe/tom/t4_listen.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/cxgbe/tom/t4_listen.c
==============================================================================
--- stable/12/sys/dev/cxgbe/tom/t4_listen.c	Thu Sep 12 21:12:39 2019	(r352266)
+++ stable/12/sys/dev/cxgbe/tom/t4_listen.c	Fri Sep 13 00:53:09 2019	(r352267)
@@ -994,7 +994,7 @@ t4opt_to_tcpopt(const struct tcp_options *t4opt, struc
 		to->to_mss = be16toh(t4opt->mss);
 	}
 
-	if (t4opt->wsf) {
+	if (t4opt->wsf > 0 && t4opt->wsf < 15) {
 		to->to_flags |= TOF_SCALE;
 		to->to_wscale = t4opt->wsf;
 	}


More information about the svn-src-all mailing list