summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ppp.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2005-11-08 20:08:34 +0000
committerthompsa <thompsa@FreeBSD.org>2005-11-08 20:08:34 +0000
commit48c0bcb5c218c021c1da0e53702d2e83708a471a (patch)
treeb5694a5381004aaef7ca02a29efbdb85ad370b4d /sys/net/if_ppp.c
parent7b0555d4591f77539a864cf4d9ca449610fd188c (diff)
downloadFreeBSD-src-48c0bcb5c218c021c1da0e53702d2e83708a471a.zip
FreeBSD-src-48c0bcb5c218c021c1da0e53702d2e83708a471a.tar.gz
Move the cloned interface list management in to if_clone. For some drivers the
softc lists and associated mutex are now unused so these have been removed. Calling if_clone_detach() will now destroy all the cloned interfaces for the driver and in most cases is all thats needed to unload. Idea by: brooks Reviewed by: brooks
Diffstat (limited to 'sys/net/if_ppp.c')
-rw-r--r--sys/net/if_ppp.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c
index 45915c6..3d5cd13 100644
--- a/sys/net/if_ppp.c
+++ b/sys/net/if_ppp.c
@@ -263,7 +263,6 @@ ppp_clone_destroy(struct ifnet *ifp)
static int
ppp_modevent(module_t mod, int type, void *data)
{
- struct ppp_softc *sc;
switch (type) {
case MOD_LOAD:
@@ -285,13 +284,6 @@ ppp_modevent(module_t mod, int type, void *data)
netisr_unregister(NETISR_PPP);
if_clone_detach(&ppp_cloner);
-
- PPP_LIST_LOCK();
- while ((sc = LIST_FIRST(&ppp_softc_list)) != NULL) {
- PPP_LIST_UNLOCK();
- ifc_simple_destroy(&ppp_cloner, PPP2IFP(sc));
- PPP_LIST_LOCK();
- }
PPP_LIST_LOCK_DESTROY();
break;
default:
OpenPOWER on IntegriCloud