mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Reinitialize driver when MTU is changed and driver is running.
Reported by: Huang, Yusheng ( yusheng.huang <> bluecoat com )
This commit is contained in:
parent
99f017d21b
commit
4de89d86cd
1 changed files with 3 additions and 1 deletions
|
|
@ -1709,8 +1709,10 @@ nfe_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
|
|||
else {
|
||||
NFE_LOCK(sc);
|
||||
ifp->if_mtu = ifr->ifr_mtu;
|
||||
if ((ifp->if_drv_flags & IFF_DRV_RUNNING) != 0)
|
||||
if (ifp->if_drv_flags & IFF_DRV_RUNNING) {
|
||||
ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
|
||||
nfe_init_locked(sc);
|
||||
}
|
||||
NFE_UNLOCK(sc);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue