mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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));
|
||||
|
||||
ifp->if_mtu = ETHERMTU;
|
||||
ifp->if_baudrate = IF_Gbps(10);
|
||||
ifp->if_init = qla_init;
|
||||
ifp->if_softc = ha;
|
||||
|
|
|
|||
Loading…
Reference in a new issue