From e5062938d152b166d9cbd5ce84a50ce3cb39e6d2 Mon Sep 17 00:00:00 2001 From: Andrew Gallatin Date: Wed, 2 Apr 2008 13:59:43 +0000 Subject: [PATCH] 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 --- sys/dev/mxge/if_mxge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mxge/if_mxge.c b/sys/dev/mxge/if_mxge.c index f54e16817c3..4f421f1a68a 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;