Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Aug 2019 22:41:17 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351446 - head/sys/dev/cxgbe/tom
Message-ID:  <201908232241.x7NMfHT3026809@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Fri Aug 23 22:41:16 2019
New Revision: 351446
URL: https://svnweb.freebsd.org/changeset/base/351446

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

Modified:
  head/sys/dev/cxgbe/tom/t4_listen.c

Modified: head/sys/dev/cxgbe/tom/t4_listen.c
==============================================================================
--- head/sys/dev/cxgbe/tom/t4_listen.c	Fri Aug 23 22:34:14 2019	(r351445)
+++ head/sys/dev/cxgbe/tom/t4_listen.c	Fri Aug 23 22:41:16 2019	(r351446)
@@ -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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908232241.x7NMfHT3026809>