summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2016-05-18 15:25:19 +0000
committerbz <bz@FreeBSD.org>2016-05-18 15:25:19 +0000
commit6a7d3963bcb72e9cbd610ce994a545a6fb32880f (patch)
tree0858b7c01f7af9b2f2502ad39173d3be57c2a521 /sys/net
parent09448d3a98591db3a900a47c43517cbb789de368 (diff)
downloadFreeBSD-src-6a7d3963bcb72e9cbd610ce994a545a6fb32880f.zip
FreeBSD-src-6a7d3963bcb72e9cbd610ce994a545a6fb32880f.tar.gz
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
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/vnet.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/net/vnet.c b/sys/net/vnet.c
index 5632949..82ef66c 100644
--- a/sys/net/vnet.c
+++ b/sys/net/vnet.c
@@ -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
OpenPOWER on IntegriCloud