summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2008-04-02 13:59:43 +0000
committergallatin <gallatin@FreeBSD.org>2008-04-02 13:59:43 +0000
commitf4c98f7455e4eb483abd5b4adb4b0179ca55ba67 (patch)
treeadcd959de221451356f9de617ffdbc064faa560f /sys
parentf1df18eb48f30e7320b9dbaa02ce3b4e4d5ae32e (diff)
downloadFreeBSD-src-f4c98f7455e4eb483abd5b4adb4b0179ca55ba67.zip
FreeBSD-src-f4c98f7455e4eb483abd5b4adb4b0179ca55ba67.tar.gz
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
Diffstat (limited to 'sys')
-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 f54e168..4f421f1 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;
OpenPOWER on IntegriCloud