svn commit: r255198 - head/sys/dev/cxgbe/tom
Navdeep Parhar
np at FreeBSD.org
Tue Sep 3 23:34:05 UTC 2013
Author: np
Date: Tue Sep 3 23:34:04 2013
New Revision: 255198
URL: http://svnweb.freebsd.org/changeset/base/255198
Log:
For TOE connections, the window scale factor in CPL_PASS_ACCEPT_REQ is
set to 15 to indicate that the peer did not send a window scale option
with its SYN. Do not send a window scale option in the SYN|ACK reply
in that case.
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 Tue Sep 3 23:20:03 2013 (r255197)
+++ head/sys/dev/cxgbe/tom/t4_listen.c Tue Sep 3 23:34:04 2013 (r255198)
@@ -1007,7 +1007,7 @@ calc_opt2p(struct adapter *sc, struct po
opt2 |= F_TSTAMPS_EN;
if (tcpopt->sack)
opt2 |= F_SACK_EN;
- if (tcpopt->wsf > 0)
+ if (tcpopt->wsf <= 14)
opt2 |= F_WND_SCALE_EN;
}
More information about the svn-src-head
mailing list