summaryrefslogtreecommitdiffstats
path: root/sys/dev/mxge
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-10-18 13:57:28 +0000
committerglebius <glebius@FreeBSD.org>2012-10-18 13:57:28 +0000
commit7c51fac09c3efa0f7c2d545891fb4871483ed960 (patch)
treee524434015eb4dec20a41c2d8a68d474ebecfd09 /sys/dev/mxge
parent34a9a386cb4df8844bca8e43dae20e4a15710fcc (diff)
downloadFreeBSD-src-7c51fac09c3efa0f7c2d545891fb4871483ed960.zip
FreeBSD-src-7c51fac09c3efa0f7c2d545891fb4871483ed960.tar.gz
Utilize new macro to initialize if_baudrate.
Diffstat (limited to 'sys/dev/mxge')
-rw-r--r--sys/dev/mxge/if_mxge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c
index 1e51d1b..c8dea6b 100644
--- a/sys/dev/mxge/if_mxge.c
+++ b/sys/dev/mxge/if_mxge.c
@@ -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
OpenPOWER on IntegriCloud