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;
        }
_______________________________________________
[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