mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue