svn commit: r355246 - stable/11/sys/dev/cxgbe/tom
Navdeep Parhar
np at FreeBSD.org
Sat Nov 30 20:04:40 UTC 2019
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;
}
More information about the svn-src-all
mailing list