From a40f7e92e2b92fb1c5634536edec20339f905d26 Mon Sep 17 00:00:00 2001 From: Prafulla Deuskar Date: Fri, 18 Apr 2003 17:36:13 +0000 Subject: [PATCH] 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 --- sys/dev/em/if_em.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index 11fac10796ba..4d615765f12d 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -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