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:
parent
a84c4d189b
commit
fac8243601
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user