Set baudrate to 100 Mbps, and advertise our ability to handle extended
frames (802.1q). Submitted by: Steinar Haug <sthaug@nethelp.no>
This commit is contained in:
parent
18b2031298
commit
912bf9d37c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129708
@ -400,7 +400,7 @@ bfe_attach(device_t dev)
|
|||||||
ifp->if_watchdog = bfe_watchdog;
|
ifp->if_watchdog = bfe_watchdog;
|
||||||
ifp->if_init = bfe_init;
|
ifp->if_init = bfe_init;
|
||||||
ifp->if_mtu = ETHERMTU;
|
ifp->if_mtu = ETHERMTU;
|
||||||
ifp->if_baudrate = 10000000;
|
ifp->if_baudrate = 100000000;
|
||||||
ifp->if_snd.ifq_maxlen = BFE_TX_QLEN;
|
ifp->if_snd.ifq_maxlen = BFE_TX_QLEN;
|
||||||
|
|
||||||
bfe_get_config(sc);
|
bfe_get_config(sc);
|
||||||
@ -418,6 +418,12 @@ bfe_attach(device_t dev)
|
|||||||
ether_ifattach(ifp, sc->arpcom.ac_enaddr);
|
ether_ifattach(ifp, sc->arpcom.ac_enaddr);
|
||||||
callout_handle_init(&sc->bfe_stat_ch);
|
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
|
* Hook interrupt last to avoid having to lock softc
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user