diff options
author | yongari <yongari@FreeBSD.org> | 2009-11-07 20:37:38 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2009-11-07 20:37:38 +0000 |
commit | 926f99a3f097c7a200b0087623885f82b3a448e0 (patch) | |
tree | 3ac8f3b8b531952e3cc6c7263765b9083fac8fb4 /sys/dev/bge | |
parent | 2223d789e6a61a4cfe308b1ca96b54392f803b00 (diff) | |
download | FreeBSD-src-926f99a3f097c7a200b0087623885f82b3a448e0.zip FreeBSD-src-926f99a3f097c7a200b0087623885f82b3a448e0.tar.gz |
Tell upper layer we support long frames. ether_ifattach()
initializes it to ETHER_HDR_LEN so we have to override it after
calling ether_ifattch().
While I'm here remove setting if_mtu value, it's initialized in
ether_ifattach().
Diffstat (limited to 'sys/dev/bge')
-rw-r--r-- | sys/dev/bge/if_bge.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 7913fd5..ba2073e 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -2723,7 +2723,6 @@ bge_attach(device_t dev) ifp->if_ioctl = bge_ioctl; ifp->if_start = bge_start; ifp->if_init = bge_init; - ifp->if_mtu = ETHERMTU; ifp->if_snd.ifq_drv_maxlen = BGE_TX_RING_CNT - 1; IFQ_SET_MAXLEN(&ifp->if_snd, ifp->if_snd.ifq_drv_maxlen); IFQ_SET_READY(&ifp->if_snd); @@ -2838,6 +2837,9 @@ again: ether_ifattach(ifp, eaddr); callout_init_mtx(&sc->bge_stat_ch, &sc->bge_mtx, 0); + /* Tell upper layer we support long frames. */ + ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header); + /* * Hookup IRQ last. */ |