diff options
author | yar <yar@FreeBSD.org> | 2006-02-10 11:01:10 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2006-02-10 11:01:10 +0000 |
commit | ede8ea20ab0381a3e9bf6cbbc5e2828f2b76a038 (patch) | |
tree | a60cfdc4aafc80b85cd3f798d97068e30b3675d8 /sys/net/if_vlan.c | |
parent | f8fec9778a9c75e563db745bde8989629102c614 (diff) | |
download | FreeBSD-src-ede8ea20ab0381a3e9bf6cbbc5e2828f2b76a038.zip FreeBSD-src-ede8ea20ab0381a3e9bf6cbbc5e2828f2b76a038.tar.gz |
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
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r-- | sys/net/if_vlan.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 52d6e1f..d270d99 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -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; |