mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Do not initialize the adapter on MTU change when adapter status is down.
This fixes long-standing problems when changing settings of the adapter. Discussed in: https://lists.freebsd.org/pipermail/freebsd-net/2016-June/045509.html Submitted by: arnaud.ysmal@stormshield.eu Reviewed by: erj@freebsd.org Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D7030
This commit is contained in:
parent
7514cc6706
commit
94f9f4e0ad
1 changed files with 2 additions and 1 deletions
|
|
@ -5293,7 +5293,8 @@ ixl_ioctl(struct ifnet * ifp, u_long command, caddr_t data)
|
|||
vsi->max_frame_size =
|
||||
ifp->if_mtu + ETHER_HDR_LEN + ETHER_CRC_LEN
|
||||
+ ETHER_VLAN_ENCAP_LEN;
|
||||
ixl_init_locked(pf);
|
||||
if (ifp->if_drv_flags & IFF_DRV_RUNNING)
|
||||
ixl_init_locked(pf);
|
||||
IXL_PF_UNLOCK(pf);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue