1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Utilize new macro to initialize if_baudrate.

This commit is contained in:
Gleb Smirnoff 2012-10-18 13:57:28 +00:00
parent c9b652e3e8
commit 73b160cf5b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241687

View File

@ -3017,7 +3017,7 @@ mxge_intr(void *arg)
sc->link_state = stats->link_up;
if (sc->link_state) {
if_link_state_change(sc->ifp, LINK_STATE_UP);
sc->ifp->if_baudrate = IF_Gbps(10UL);
if_initbaudrate(sc->ifp, IF_Gbps(10));
if (mxge_verbose)
device_printf(sc->dev, "link up\n");
} else {
@ -4773,7 +4773,7 @@ mxge_attach(device_t dev)
goto abort_with_rings;
}
ifp->if_baudrate = IF_Gbps(10UL);
if_initbaudrate(ifp, IF_Gbps(10));
ifp->if_capabilities = IFCAP_RXCSUM | IFCAP_TXCSUM | IFCAP_TSO4 |
IFCAP_VLAN_MTU | IFCAP_LINKSTATE;
#ifdef INET