/* Create network context */
if (vc_net_create(ctx) == VC_NOCTX) {
if (errno == EEXIST)
- goto process;
+ goto tag;
return -1;
}
if (vc_set_nflags(ctx, &vc_nf))
return -1;
+tag:
+ /* Create tag context */
+ if (vc_tag_create(ctx) == VC_NOCTX)
+ return -1;
+
process:
/*
* Create context info - this sets the STATE_SETUP and STATE_INIT flags.
migrate:
if (net_migrated || !vc_net_migrate(ctx))
{
- if (!vc_ctx_migrate(ctx, 0))
+ if (!vc_tag_migrate(ctx) && !vc_ctx_migrate(ctx, 0))
break; /* done */
net_migrated = 1;
}