Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 2010 19:51:34 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/etc network.subr
Message-ID:  <201005171951.o4HJphQD071369@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2010-05-17 19:51:34 UTC

  FreeBSD src repository

  Modified files:
    etc                  network.subr 
  Log:
  SVN rev 208213 on 2010-05-17 19:51:34Z by jhb
  
  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.
  
  Reviewed by:    dougb
  MFC after:      4 days
  
  Revision  Changes    Path
  1.210     +3 -9      src/etc/network.subr



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005171951.o4HJphQD071369>