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/netinet/ip_carp.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/netinet/ip_carp.c')
-rw-r--r-- | sys/netinet/ip_carp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 5fe4577..44157b4 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -2143,9 +2143,6 @@ carp_modevent(module_t mod, int type, void *data) case MOD_UNLOAD: if_clone_detach(&carp_cloner); - while (!LIST_EMPTY(&carpif_list)) - ifc_simple_destroy(&carp_cloner, - SC2IFP(LIST_FIRST(&carpif_list))); mtx_destroy(&carp_mtx); break; |