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
This commit is contained in:
gallatin 2008-04-02 13:59:43 +00:00
parent f1df18eb48
commit f4c98f7455

View File

@ -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;