Reinitialize driver when MTU is changed and driver is running.

Reported by:	Huang, Yusheng ( yusheng.huang <> bluecoat com )
This commit is contained in:
yongari 2011-01-24 17:53:58 +00:00
parent d0e4831ad1
commit fe2532f851

View File

@ -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);
}
}