From 94081f88e825a3d82aa647d204b4e3a69285c51f Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Wed, 18 May 2016 15:50:52 +0000 Subject: Add a "vnet_state" field to struct vnet. This is set to the SI_SUB_* value before executing any VNET_SYSINIT or VNET_SYSUNINT. While good for debugging especially VNET teardown problems having a chance to know at which level during teardown we are, it will also be used to identify to detcted a "stable state" (as in fully up and running) later on. Obtained from: projects/vnet Sponsored by: The FreeBSD Foundation --- sys/net/vnet.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/net/vnet.h') diff --git a/sys/net/vnet.h b/sys/net/vnet.h index 75bb728bc17c..cc23f87ed31a 100644 --- a/sys/net/vnet.h +++ b/sys/net/vnet.h @@ -70,6 +70,7 @@ struct vnet { u_int vnet_magic_n; u_int vnet_ifcnt; u_int vnet_sockcnt; + u_int vnet_state; /* SI_SUB_* */ void *vnet_data_mem; uintptr_t vnet_data_base; }; -- cgit v1.2.3