Date: Fri, 21 May 2010 16:17:46 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/etc network.subr Message-ID: <201005211618.o4LGIAt3048862@repoman.freebsd.org>
index | next in thread | raw e-mail
jhb 2010-05-21 16:17:46 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
etc network.subr
Log:
SVN rev 208385 on 2010-05-21 16:17:46Z by jhb
MFC 208213:
Prevent unloading a kld for a driver that has subinterfaces (vlan 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.
Revision Changes Path
1.180.2.8 +2 -5 src/etc/network.subr
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005211618.o4LGIAt3048862>
