diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2016-05-18 15:50:52 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2016-05-18 15:50:52 +0000 |
commit | 94081f88e825a3d82aa647d204b4e3a69285c51f (patch) | |
tree | 0849bb78ce8865125eb60051a432b6a6653b4ad3 /sys/net/vnet.h | |
parent | fc614c29c1f0eef3d62e47caddca238a30e8652e (diff) | |
download | src-94081f88e825a3d82aa647d204b4e3a69285c51f.tar.gz src-94081f88e825a3d82aa647d204b4e3a69285c51f.zip |
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
Notes
Notes:
svn path=/head/; revision=300155
Diffstat (limited to 'sys/net/vnet.h')
-rw-r--r-- | sys/net/vnet.h | 1 |
1 files changed, 1 insertions, 0 deletions
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; }; |