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:
parent
f1df18eb48
commit
f4c98f7455
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user