diff options
author | thompsa <thompsa@FreeBSD.org> | 2005-11-08 20:08:34 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2005-11-08 20:08:34 +0000 |
commit | 48c0bcb5c218c021c1da0e53702d2e83708a471a (patch) | |
tree | b5694a5381004aaef7ca02a29efbdb85ad370b4d /sys/net/if_gif.c | |
parent | 7b0555d4591f77539a864cf4d9ca449610fd188c (diff) | |
download | FreeBSD-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_gif.c')
-rw-r--r-- | sys/net/if_gif.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index da611cc..c946a1c 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -225,7 +225,6 @@ gifmodevent(mod, type, data) int type; void *data; { - struct gif_softc *sc; switch (type) { case MOD_LOAD: @@ -240,14 +239,6 @@ gifmodevent(mod, type, data) break; case MOD_UNLOAD: if_clone_detach(&gif_cloner); - - mtx_lock(&gif_mtx); - while ((sc = LIST_FIRST(&gif_softc_list)) != NULL) { - mtx_unlock(&gif_mtx); - ifc_simple_destroy(&gif_cloner, GIF2IFP(sc)); - mtx_lock(&gif_mtx); - } - mtx_unlock(&gif_mtx); mtx_destroy(&gif_mtx); #ifdef INET6 ip6_gif_hlim = 0; |