Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Oct 2018 01:49:43 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r339401 - stable/11/sys/dev/cxgbe/tom
Message-ID:  <201810170149.w9H1nhum086066@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810170149.w9H1nhum086066>