mxge: replace 65536 with IP_MAXPACKET in tso settings.
This commit is contained in:
parent
370a338a7d
commit
3d07f89450
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335973
@ -4984,9 +4984,9 @@ mxge_attach(device_t dev)
|
||||
ifp->if_ioctl = mxge_ioctl;
|
||||
ifp->if_start = mxge_start;
|
||||
ifp->if_get_counter = mxge_get_counter;
|
||||
ifp->if_hw_tsomax = 65536 - (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN);
|
||||
ifp->if_hw_tsomax = IP_MAXPACKET - (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN);
|
||||
ifp->if_hw_tsomaxsegcount = sc->ss[0].tx.max_desc;
|
||||
ifp->if_hw_tsomaxsegsize = 65536;
|
||||
ifp->if_hw_tsomaxsegsize = IP_MAXPACKET;
|
||||
/* Initialise the ifmedia structure */
|
||||
ifmedia_init(&sc->media, 0, mxge_media_change,
|
||||
mxge_media_status);
|
||||
|
Loading…
Reference in New Issue
Block a user