mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add a dummy VNET_SYSINIT that will make sure all VNETs started will
always end on SI_SUB_VNET_DONE. Obtained from: projects/vnet Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
416970ad85
commit
00e36a5c7c
1 changed files with 10 additions and 0 deletions
|
|
@ -358,6 +358,16 @@ vnet_data_startup(void *dummy __unused)
|
|||
}
|
||||
SYSINIT(vnet_data, SI_SUB_KLD, SI_ORDER_FIRST, vnet_data_startup, 0);
|
||||
|
||||
/* Dummy VNET_SYSINIT to make sure we always reach the final end state. */
|
||||
static void
|
||||
vnet_sysinit_done(void *unused __unused)
|
||||
{
|
||||
|
||||
return;
|
||||
}
|
||||
VNET_SYSINIT(vnet_sysinit_done, SI_SUB_VNET_DONE, SI_ORDER_ANY,
|
||||
vnet_sysinit_done, NULL);
|
||||
|
||||
/*
|
||||
* When a module is loaded and requires storage for a virtualized global
|
||||
* variable, allocate space from the modspace free list. This interface
|
||||
|
|
|
|||
Loading…
Reference in a new issue