diff options
author | lstewart <lstewart@FreeBSD.org> | 2013-06-15 10:08:34 +0000 |
---|---|---|
committer | lstewart <lstewart@FreeBSD.org> | 2013-06-15 10:08:34 +0000 |
commit | 035b65bb7d2f7220d9067d4f74d0e82cbba5fbe9 (patch) | |
tree | 2c4784d20a366a3beb22afa8785541c41e056e76 /contrib/llvm/tools/clang/lib/Sema/SemaDecl.cpp | |
parent | fd1bc7712a4ef21c74be5c30aa2e2c5df4ac2b2c (diff) | |
download | FreeBSD-src-035b65bb7d2f7220d9067d4f74d0e82cbba5fbe9.zip FreeBSD-src-035b65bb7d2f7220d9067d4f74d0e82cbba5fbe9.tar.gz |
Move hhook's per-vnet initialisation to an earlier SYSINIT SI_SUB stage to
ensure all per-vnet related hhook initialisation is completed prior to any
virtualised hhook points attempting registration.
vnet_register_sysinit() requires that a stage later than SI_SUB_VNET be chosen.
There are no per-vnet initialisors in the source tree at this time which run
earlier than SI_SUB_INIT_IF. A quick audit of non-virtualised SYSINITs indicates
there are no subsystems pre SI_SUB_MBUF that would likely be interested in
registering a virtualised hhook point.
Settle on SI_SUB_MBUF as hhook's per-vnet initialisation stage as it's the first
overtly network-related initilisation stage to run after SI_SUB_VNET. If a
subsystem that initialises earlier than SI_SUB_MBUF ends up wanting to register
virtualised hhook points in future, hhook's use of SI_SUB_MBUF will need to be
revisited and would probably warrant creating a dedicated SI_SUB_HHOOK which
runs immediately after SI_SUB_VNET.
MFC after: 1 week
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Sema/SemaDecl.cpp')
0 files changed, 0 insertions, 0 deletions