Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 May 2016 15:25:19 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300151 - head/sys/net
Message-ID:  <201605181525.u4IFPJ78024781@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Wed May 18 15:25:19 2016
New Revision: 300151
URL: https://svnweb.freebsd.org/changeset/base/300151

Log:
  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

Modified:
  head/sys/net/vnet.c

Modified: head/sys/net/vnet.c
==============================================================================
--- head/sys/net/vnet.c	Wed May 18 15:18:18 2016	(r300150)
+++ head/sys/net/vnet.c	Wed May 18 15:25:19 2016	(r300151)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605181525.u4IFPJ78024781>