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/contrib/pf | |
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/contrib/pf')
-rw-r--r-- | sys/contrib/pf/net/if_pflog.c | 3 | ||||
-rw-r--r-- | sys/contrib/pf/net/if_pfsync.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/sys/contrib/pf/net/if_pflog.c b/sys/contrib/pf/net/if_pflog.c index 2497a94..1466ec2 100644 --- a/sys/contrib/pf/net/if_pflog.c +++ b/sys/contrib/pf/net/if_pflog.c @@ -369,9 +369,6 @@ pflog_modevent(module_t mod, int type, void *data) case MOD_UNLOAD: if_clone_detach(&pflog_cloner); - while (!LIST_EMPTY(&pflog_list)) - ifc_simple_destroy(&pflog_cloner, - SCP2IFP(LIST_FIRST(&pflog_list))); break; default: diff --git a/sys/contrib/pf/net/if_pfsync.c b/sys/contrib/pf/net/if_pfsync.c index 5f0e8a6..e7f80e2 100644 --- a/sys/contrib/pf/net/if_pfsync.c +++ b/sys/contrib/pf/net/if_pfsync.c @@ -1851,9 +1851,6 @@ pfsync_modevent(module_t mod, int type, void *data) case MOD_UNLOAD: if_clone_detach(&pfsync_cloner); - while (!LIST_EMPTY(&pfsync_list)) - ifc_simple_destroy(&pfsync_cloner, - SCP2IFP(LIST_FIRST(&pfsync_list))); break; default: |