diff options
author | Marko Zec <zec@FreeBSD.org> | 2009-04-26 22:06:42 +0000 |
---|---|---|
committer | Marko Zec <zec@FreeBSD.org> | 2009-04-26 22:06:42 +0000 |
commit | 093f25f8c8b449b9b3cdb6cac7ef2d31f84bdca7 (patch) | |
tree | 1c2ccb403d29ceb85ca7992b6b96623f561c79db /sys/netinet/ip_divert.c | |
parent | dc7bf546c86433d1b42e5ec40a5d09a88ccdb9de (diff) | |
download | src-093f25f8c8b449b9b3cdb6cac7ef2d31f84bdca7.tar.gz src-093f25f8c8b449b9b3cdb6cac7ef2d31f84bdca7.zip |
In preparation for turning on options VIMAGE in next commits,
rearrange / replace / adjust several INIT_VNET_* initializer
macros, all of which currently resolve to whitespace.
Reviewed by: bz (an older version of the patch)
Approved by: julian (mentor)
Notes
Notes:
svn path=/head/; revision=191548
Diffstat (limited to 'sys/netinet/ip_divert.c')
-rw-r--r-- | sys/netinet/ip_divert.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c index 8a2fc25faaa6..f88a8fd003d3 100644 --- a/sys/netinet/ip_divert.c +++ b/sys/netinet/ip_divert.c @@ -132,6 +132,7 @@ static u_long div_recvspace = DIVRCVQ; /* XXX sysctl ? */ static void div_zone_change(void *tag) { + INIT_VNET_INET(curvnet); uma_zone_set_max(V_divcbinfo.ipi_zone, maxsockets); } @@ -723,6 +724,7 @@ struct protosw div_protosw = { static int div_modevent(module_t mod, int type, void *unused) { + INIT_VNET_INET(curvnet); /* XXX move to iattach - revisit!!! */ int err = 0; int n; |