]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 208213:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 21 May 2010 16:17:08 +0000 (16:17 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 21 May 2010 16:17:08 +0000 (16:17 +0000)
commitfea80c600f6da532a4c4f86a0952377bcb8c6040
tree8cde6d90d75bad1dd5dd53e2f3ad5baf6f6e7967
parent23026b5ca95a755cd6c2db630d9f812b07aac3d0
MFC 208213:
Prevent unloading a kld for a driver that has subinterfaces (vlan and/or
wlan interfaces) from being automatically reloaded via devd shutdown
event handlers.
- Revert part of my previous changes to call ifn_stop on subinterfaces
  when an interface is detached.  It is better to destroy the interfaces
  first so that an 'ifconfig foo0.blah down' doesn't result in ifconfig
  auto-loading if_foo.ko.  The ifconfig command will not be invoked if
  foo0.blah is gone when ifn_stop() is called.  Furthermore, it is not
  necessary to explicitly invoke ifn_stop() after the subinterface is
  destroyed as devd will already do that.
- Pass -n to ifconfig when destroying interfaces so that destroying a
  cloned interface does not kldload any drivers.

git-svn-id: svn://svn.freebsd.org/base/stable/8@208384 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
etc/network.subr