mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217794
|
@ -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