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@gmail.com
MFC after:	2 weeks
This commit is contained in:
Sean Bruno 2015-08-31 19:12:10 +00:00
parent a84c4d189b
commit fac8243601

View File

@ -3044,7 +3044,7 @@ em_setup_interface(device_t dev, struct adapter *adapter)
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;