PERFORCE change 161807 for review
Marko Zec
zec at FreeBSD.org
Sat May 9 02:38:23 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=161807
Change 161807 by zec at zec_tpx32 on 2009/05/09 02:37:24
Record in which vnet has this ifnet been attached
for the first time, so in case that vnet is not the
default vnet, we do not ever push that ifnet above the
recorded home_vnet level in the vnet hierarchy.
Example: if we create a vnet or ng_eiface interface in
a non-default vnet, we do not ever wish for those to
end up in the default.
Affected files ...
.. //depot/projects/vimage-commit2/src/sys/net/if.c#55 edit
Differences ...
==== //depot/projects/vimage-commit2/src/sys/net/if.c#55 (text+ko) ====
@@ -675,6 +675,12 @@
#ifdef VIMAGE
ifp->if_vnet = curvnet;
+ /*
+ * Record in which vnet has this ifnet been attached
+ * for the first time.
+ */
+ if (ifp->if_home_vnet == NULL)
+ ifp->if_home_vnet = curvnet;
#endif
if_addgroup(ifp, IFG_ALL);
More information about the p4-projects
mailing list