svn commit: r320426 - head/sys/dev/cxgbe/tom

Navdeep Parhar np at FreeBSD.org
Tue Jun 27 22:05:08 UTC 2017


Author: np
Date: Tue Jun 27 22:05:06 2017
New Revision: 320426
URL: https://svnweb.freebsd.org/changeset/base/320426

Log:
  cxgbe/t4_tom: Do not include space taken by the TCP timestamp option in
  the "effective MSS" for the connection.  The chip expects it this way.
  
  Submitted by:	Krishnamraju Eraparaju @ Chelsio
  MFC after:	3 days
  Sponsored by:	Chelsio Communications

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

Modified: head/sys/dev/cxgbe/tom/t4_cpl_io.c
==============================================================================
--- head/sys/dev/cxgbe/tom/t4_cpl_io.c	Tue Jun 27 20:24:44 2017	(r320425)
+++ head/sys/dev/cxgbe/tom/t4_cpl_io.c	Tue Jun 27 22:05:06 2017	(r320426)
@@ -332,6 +332,8 @@ assign_rxopt(struct tcpcb *tp, unsigned int opt)
 		n = sizeof(struct ip6_hdr) + sizeof(struct tcphdr);
 	else
 		n = sizeof(struct ip) + sizeof(struct tcphdr);
+	if (V_tcp_do_rfc1323)
+		n += TCPOLEN_TSTAMP_APPA;
 	tp->t_maxseg = sc->params.mtus[G_TCPOPT_MSS(opt)] - n;
 
 	CTR4(KTR_CXGBE, "%s: tid %d, mtu_idx %u (%u)", __func__, toep->tid,


More information about the svn-src-head mailing list