svn commit: r241687 - head/sys/dev/mxge
Gleb Smirnoff
glebius at FreeBSD.org
Thu Oct 18 13:57:28 UTC 2012
Author: glebius
Date: Thu Oct 18 13:57:28 2012
New Revision: 241687
URL: http://svn.freebsd.org/changeset/base/241687
Log:
Utilize new macro to initialize if_baudrate.
Modified:
head/sys/dev/mxge/if_mxge.c
Modified: head/sys/dev/mxge/if_mxge.c
==============================================================================
--- head/sys/dev/mxge/if_mxge.c Thu Oct 18 13:57:24 2012 (r241686)
+++ head/sys/dev/mxge/if_mxge.c Thu Oct 18 13:57:28 2012 (r241687)
@@ -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
More information about the svn-src-head
mailing list