Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Aug 2009 01:17:28 +0200
From:      Marko Zec <zec@freebsd.org>
To:        Julian Elischer <julian@elischer.org>
Cc:        Perforce Change Reviews <perforce@freebsd.org>, Robert Watson <rwatson@freebsd.org>
Subject:   Re: PERFORCE change 167260 for review
Message-ID:  <200908130117.28913.zec@freebsd.org>
In-Reply-To: <4A834A00.1000605@elischer.org>
References:  <200908122108.n7CL8uhJ058398@repoman.freebsd.org> <200908130058.51574.zec@freebsd.org> <4A834A00.1000605@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 13 August 2009 01:02:24 Julian Elischer wrote:
...
> trouble is I think we now have the init routines being called per vnet
> TWICE..

No they are not - nothing in the last commits to p4/vc2 changed anything the 
mechanisms you point out below - only pf_proto_register() has changed, and 
pf_proto_register() is not being trampolined off of any of the VNET_SYSINIT 
things, it is simply being called from the modevent handler, and it is being 
called only once.

Marko


> follow these links...
>
>
>
> vmware-current# find . -name "*.[ch]" | xargs grep vnet_domain_init
> ./kern/uipc_domain.c:vnet_domain_init(void *arg)
> ./sys/domain.h:void             vnet_domain_init(void *);
> ./sys/domain.h: VNET_SYSINIT(vnet_domain_init_ ## name,
> SI_SUB_PROTO_DOMAIN,   \
> ./sys/domain.h:     SI_ORDER_SECOND, vnet_domain_init, & name ##
> domain);      \
>
> vmware-current# find . -name "*.[ch]" | xargs grep VNET_DOMAIN_SET
> ./netinet/in_proto.c:VNET_DOMAIN_SET(inet);
> ./netgraph/ng_socket.c:VNET_DOMAIN_SET(ng);
> ./net/rtsock.c:VNET_DOMAIN_SET(route);
> ./netinet6/in6_proto.c:VNET_DOMAIN_SET(inet6);
> ./netipsec/keysock.c:VNET_DOMAIN_SET(key);
> ./sys/domain.h:#define  VNET_DOMAIN_SET(name)
>           \
> ./sys/domain.h:#define  VNET_DOMAIN_SET(name)   DOMAIN_SET(name)





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