aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mxge
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2008-04-02 13:59:43 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2008-04-02 13:59:43 +0000
commite5062938d152b166d9cbd5ce84a50ce3cb39e6d2 (patch)
treeadcd959de221451356f9de617ffdbc064faa560f /sys/dev/mxge
parent7abb97dcd84a654b3d733fa85b963765fd629a80 (diff)
downloadsrc-e5062938d152b166d9cbd5ce84a50ce3cb39e6d2.tar.gz
src-e5062938d152b166d9cbd5ce84a50ce3cb39e6d2.zip
Initialize if_baudrate using IF_Gbps() macro.
Note that if_baudrate is a long, and 32-bits isn't enough to properly represent 10Gb/s. Pointed out by: dwhite
Notes
Notes: svn path=/head/; revision=177862
Diffstat (limited to 'sys/dev/mxge')
-rw-r--r--sys/dev/mxge/if_mxge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c
index f54e16817c3b..4f421f1a68a9 100644
--- a/sys/dev/mxge/if_mxge.c
+++ b/sys/dev/mxge/if_mxge.c
@@ -4240,7 +4240,7 @@ mxge_attach(device_t dev)
goto abort_with_rings;
}
- ifp->if_baudrate = 100000000;
+ ifp->if_baudrate = IF_Gbps(10UL);
ifp->if_capabilities = IFCAP_RXCSUM | IFCAP_TXCSUM | IFCAP_TSO4 |
IFCAP_VLAN_MTU | IFCAP_LRO;