svn commit: r325245 - head/sys/net

Stephen Hurd shurd at FreeBSD.org
Tue Oct 31 19:03:36 UTC 2017


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 at 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:


More information about the svn-src-all mailing list