PERFORCE change 167260 for review
Marko Zec
zec at freebsd.org
Wed Aug 12 23:17:40 UTC 2009
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)
More information about the p4-projects
mailing list