Avoid frobbing IFF_UP at any cost (which is close to

zero in this case.)  A kernel driver has IFF_DRV_RUNNING
at its full disposal while IFF_UP may be toggled only by
humans or their daemonic deputies from the userland.

MFC after:	3 days
This commit is contained in:
yar 2006-02-10 11:01:10 +00:00
parent f8fec9778a
commit ede8ea20ab

View File

@ -1316,8 +1316,6 @@ vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
if (vlr.vlr_parent[0] == '\0') {
VLAN_LOCK();
vlan_unconfig(ifp);
if (ifp->if_flags & IFF_UP)
if_down(ifp);
ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
VLAN_UNLOCK();
break;