Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 2017 19:03:35 +0000 (UTC)
From:      Stephen Hurd <shurd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r325245 - head/sys/net
Message-ID:  <201710311903.v9VJ3ZDD064593@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: shurd
Date: Tue Oct 31 19:03:35 2017
New Revision: 325245
URL: https://svnweb.freebsd.org/changeset/base/325245

Log:
  Preserve TSO checksum flags
  
  r323941 incorrectly disabled TSO flags based on MTU.
  
  Reported by:	Yuri Pankov <yuripv@gmx.com>
  Reviewed by:	sbruno
  Approved by:	sbruno (mentor)
  Sponsored by:	Limelight Networks
  Differential Revision:	https://reviews.freebsd.org/D12880

Modified:
  head/sys/net/iflib.c

Modified: head/sys/net/iflib.c
==============================================================================
--- head/sys/net/iflib.c	Tue Oct 31 19:02:14 2017	(r325244)
+++ head/sys/net/iflib.c	Tue Oct 31 19:03:35 2017	(r325245)
@@ -2718,10 +2718,6 @@ iflib_parse_header(iflib_txq_t txq, if_pkt_info_t pi, 
 		pi->ipi_ehdrlen = ETHER_HDR_LEN;
 	}
 
-	if (if_getmtu(txq->ift_ctx->ifc_ifp) >= pi->ipi_len) {
-		pi->ipi_csum_flags &= ~(CSUM_IP_TSO|CSUM_IP6_TSO);
-	}
-
 	switch (pi->ipi_etype) {
 #ifdef INET
 	case ETHERTYPE_IP:



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