Reinitialize driver when MTU is changed and driver is running.
Reported by: Huang, Yusheng ( yusheng.huang <> bluecoat com )
This commit is contained in:
parent
d0e4831ad1
commit
fe2532f851
@ -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 New Issue
Block a user