svn commit: r339401 - stable/11/sys/dev/cxgbe/tom

Navdeep Parhar np at FreeBSD.org
Wed Oct 17 01:49:44 UTC 2018


Author: np
Date: Wed Oct 17 01:49:43 2018
New Revision: 339401
URL: https://svnweb.freebsd.org/changeset/base/339401

Log:
  MFC r320426:
  
  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.

Modified:
  stable/11/sys/dev/cxgbe/tom/t4_cpl_io.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/cxgbe/tom/t4_cpl_io.c
==============================================================================
--- stable/11/sys/dev/cxgbe/tom/t4_cpl_io.c	Wed Oct 17 01:30:51 2018	(r339400)
+++ stable/11/sys/dev/cxgbe/tom/t4_cpl_io.c	Wed Oct 17 01:49:43 2018	(r339401)
@@ -260,6 +260,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-stable-11 mailing list