1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

Tell the upper layer(s) that we support long frames.

Not doing this caused the vlan mtu to be reduced by 4 bytes.

Submitted by:	Doug Ambrisko (ambrisko)
MFC after:	1 day
This commit is contained in:
Prafulla Deuskar 2003-04-18 17:36:13 +00:00
parent 4c3c0fecae
commit a40f7e92e2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113673

View File

@ -1609,6 +1609,10 @@ em_setup_interface(device_t dev, struct adapter * adapter)
ifp->if_capenable = ifp->if_capabilities;
}
/*
* Tell the upper layer(s) we support long frames.
*/
ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header);
#if __FreeBSD_version >= 500000
ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU;
#endif