Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2019 20:04:40 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r355246 - stable/11/sys/dev/cxgbe/tom
Message-ID:  <201911302004.xAUK4ecS048346@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Sat Nov 30 20:04:40 2019
New Revision: 355246
URL: https://svnweb.freebsd.org/changeset/base/355246

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/11/sys/dev/cxgbe/tom/t4_listen.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/cxgbe/tom/t4_listen.c
==============================================================================
--- stable/11/sys/dev/cxgbe/tom/t4_listen.c	Sat Nov 30 19:54:45 2019	(r355245)
+++ stable/11/sys/dev/cxgbe/tom/t4_listen.c	Sat Nov 30 20:04:40 2019	(r355246)
@@ -992,7 +992,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?201911302004.xAUK4ecS048346>