pf: Allow the module to be unloaded
pf can now be safely unloaded. Most of this code is exercised on vnet jail shutdown. Don't block unloading.
This commit is contained in:
parent
5d0020d6d7
commit
9d671fee3a
@ -3833,12 +3833,6 @@ pf_modevent(module_t mod, int type, void *data)
|
|||||||
case MOD_LOAD:
|
case MOD_LOAD:
|
||||||
error = pf_load();
|
error = pf_load();
|
||||||
break;
|
break;
|
||||||
case MOD_QUIESCE:
|
|
||||||
/*
|
|
||||||
* Module should not be unloaded due to race conditions.
|
|
||||||
*/
|
|
||||||
error = EBUSY;
|
|
||||||
break;
|
|
||||||
case MOD_UNLOAD:
|
case MOD_UNLOAD:
|
||||||
/* Handled in SYSUNINIT(pf_unload) to ensure it's done after
|
/* Handled in SYSUNINIT(pf_unload) to ensure it's done after
|
||||||
* the vnet_pf_uninit()s */
|
* the vnet_pf_uninit()s */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user