svn commit: r287330 - head/sys/dev/e1000

Sean Bruno sbruno at FreeBSD.org
Mon Aug 31 19:12:11 UTC 2015


Author: sbruno
Date: Mon Aug 31 19:12:10 2015
New Revision: 287330
URL: https://svnweb.freebsd.org/changeset/base/287330

Log:
  Restrict tso_max to IP_MAXPACKET to avoid the panic reported in:
  https://lists.freebsd.org/pipermail/freebsd-current/2015-August/057192.html
  
  Submitted by:	pyunyh at gmail.com
  MFC after:	2 weeks

Modified:
  head/sys/dev/e1000/if_em.c

Modified: head/sys/dev/e1000/if_em.c
==============================================================================
--- head/sys/dev/e1000/if_em.c	Mon Aug 31 18:58:53 2015	(r287329)
+++ head/sys/dev/e1000/if_em.c	Mon Aug 31 19:12:10 2015	(r287330)
@@ -3044,7 +3044,7 @@ em_setup_interface(device_t dev, struct 
 	if_setioctlfn(ifp, em_ioctl);
 	if_setgetcounterfn(ifp, em_get_counter);
 	/* TSO parameters */
-	ifp->if_hw_tsomax = EM_TSO_SIZE;
+	ifp->if_hw_tsomax = IP_MAXPACKET;
 	ifp->if_hw_tsomaxsegcount = EM_MAX_SCATTER;
 	ifp->if_hw_tsomaxsegsize = EM_TSO_SEG_SIZE;
 


More information about the svn-src-head mailing list