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:
parent
71b7afb2b4
commit
802dadcfeb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155502
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user