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: pyu...@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;
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to