freebsd-dev/sys/netipsec
Robert Watson d0728d7174 Introduce and use a sysinit-based initialization scheme for virtual
network stacks, VNET_SYSINIT:

- Add VNET_SYSINIT and VNET_SYSUNINIT macros to declare events that will
  occur each time a network stack is instantiated and destroyed.  In the
  !VIMAGE case, these are simply mapped into regular SYSINIT/SYSUNINIT.
  For the VIMAGE case, we instead use SYSINIT's to track their order and
  properties on registration, using them for each vnet when created/
  destroyed, or immediately on module load for already-started vnets.
- Remove vnet_modinfo mechanism that existed to serve this purpose
  previously, as well as its dependency scheme: we now just use the
  SYSINIT ordering scheme.
- Implement VNET_DOMAIN_SET() to allow protocol domains to declare that
  they want init functions to be called for each virtual network stack
  rather than just once at boot, compiling down to DOMAIN_SET() in the
  non-VIMAGE case.
- Walk all virtualized kernel subsystems and make use of these instead
  of modinfo or DOMAIN_SET() for init/uninit events.  In some cases,
  convert modular components from using modevent to using sysinit (where
  appropriate).  In some cases, do minor rejuggling of SYSINIT ordering
  to make room for or better manage events.

Portions submitted by:	jhb (VNET_SYSINIT), bz (cleanup)
Discussed with:		jhb, bz, julian, zec
Reviewed by:		bz
Approved by:		re (VIMAGE blanket)
2009-07-23 20:46:49 +00:00
..
ah_var.h
ah.h
esp_var.h
esp.h
ipcomp_var.h
ipcomp.h
ipip_var.h
ipsec6.h
ipsec_input.c
ipsec_mbuf.c
ipsec_output.c
ipsec.c Introduce and use a sysinit-based initialization scheme for virtual 2009-07-23 20:46:49 +00:00
ipsec.h
key_debug.c
key_debug.h
key_var.h
key.c Reimplement and/or implement vnet list locking by replacing a mostly 2009-07-19 14:20:53 +00:00
key.h
keydb.h
keysock.c Introduce and use a sysinit-based initialization scheme for virtual 2009-07-23 20:46:49 +00:00
keysock.h
xform_ah.c
xform_esp.c
xform_ipcomp.c Garbage collect vnet module registrations that have neither constructors 2009-07-20 13:55:33 +00:00
xform_ipip.c Garbage collect vnet module registrations that have neither constructors 2009-07-20 13:55:33 +00:00
xform_tcp.c
xform.h