qlxgb: Initialize if_mtu before setting max_frame_size.
Previously we were relying on ether_ifattach() to set if_mtu, but max_frame_size is initialized earlier. This fixes a regression introduced by r250375. PR: 249050 Submitted by: Christian Vallières <novacrash_@hotmail.com> MFC after: 3 days
This commit is contained in:
parent
e439fa62ef
commit
f7eec6b204
@ -671,6 +671,7 @@ qla_init_ifnet(device_t dev, qla_host_t *ha)
|
|||||||
|
|
||||||
if_initname(ifp, device_get_name(dev), device_get_unit(dev));
|
if_initname(ifp, device_get_name(dev), device_get_unit(dev));
|
||||||
|
|
||||||
|
ifp->if_mtu = ETHERMTU;
|
||||||
ifp->if_baudrate = IF_Gbps(10);
|
ifp->if_baudrate = IF_Gbps(10);
|
||||||
ifp->if_init = qla_init;
|
ifp->if_init = qla_init;
|
||||||
ifp->if_softc = ha;
|
ifp->if_softc = ha;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user