Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/vnet.c
Show First 20 Lines • Show All 306 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
SYSINIT(vnet_init_prelink, SI_SUB_VNET_PRELINK, SI_ORDER_FIRST, | SYSINIT(vnet_init_prelink, SI_SUB_VNET_PRELINK, SI_ORDER_FIRST, | ||||
vnet_init_prelink, NULL); | vnet_init_prelink, NULL); | ||||
static void | static void | ||||
vnet0_init(void *arg __unused) | vnet0_init(void *arg __unused) | ||||
{ | { | ||||
/* Warn people before take off - in case we crash early. */ | if (bootverbose) | ||||
printf("WARNING: VIMAGE (virtualized network stack) is a highly " | printf("VIMAGE (virtualized network stack) enabled\n"); | ||||
"experimental feature.\n"); | |||||
/* | /* | ||||
* We MUST clear curvnet in vi_init_done() before going SMP, | * We MUST clear curvnet in vi_init_done() before going SMP, | ||||
* otherwise CURVNET_SET() macros would scream about unnecessary | * otherwise CURVNET_SET() macros would scream about unnecessary | ||||
* curvnet recursions. | * curvnet recursions. | ||||
*/ | */ | ||||
curvnet = prison0.pr_vnet = vnet0 = vnet_alloc(); | curvnet = prison0.pr_vnet = vnet0 = vnet_alloc(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 479 Lines • Show Last 20 Lines |