diff options
author | des <des@FreeBSD.org> | 2004-05-25 11:04:01 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2004-05-25 11:04:01 +0000 |
commit | 86892f1e9c3975cd2e94e13236f384372fb22c9c (patch) | |
tree | febdb029062beaf42c9eda5bb11b41453f6d71c5 /sys/dev/bfe | |
parent | 0efcf2d09b12038b193324b365c44a222b1f7392 (diff) | |
download | FreeBSD-src-86892f1e9c3975cd2e94e13236f384372fb22c9c.zip FreeBSD-src-86892f1e9c3975cd2e94e13236f384372fb22c9c.tar.gz |
Set baudrate to 100 Mbps, and advertise our ability to handle extended
frames (802.1q).
Submitted by: Steinar Haug <sthaug@nethelp.no>
Diffstat (limited to 'sys/dev/bfe')
-rw-r--r-- | sys/dev/bfe/if_bfe.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c index 8661843..6fdfb9a 100644 --- a/sys/dev/bfe/if_bfe.c +++ b/sys/dev/bfe/if_bfe.c @@ -400,7 +400,7 @@ bfe_attach(device_t dev) ifp->if_watchdog = bfe_watchdog; ifp->if_init = bfe_init; ifp->if_mtu = ETHERMTU; - ifp->if_baudrate = 10000000; + ifp->if_baudrate = 100000000; ifp->if_snd.ifq_maxlen = BFE_TX_QLEN; bfe_get_config(sc); @@ -419,6 +419,12 @@ bfe_attach(device_t dev) callout_handle_init(&sc->bfe_stat_ch); /* + * Tell the upper layer(s) we support long frames. + */ + ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header); + ifp->if_capabilities |= IFCAP_VLAN_MTU; + + /* * Hook interrupt last to avoid having to lock softc */ error = bus_setup_intr(dev, sc->bfe_irq, INTR_TYPE_NET, |