PERFORCE change 161827 for review
Marko Zec
zec at FreeBSD.org
Sat May 9 13:04:43 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=161827
Change 161827 by zec at zec_tpx32 on 2009/05/09 13:04:37
Disable interface renaming during reassignment from one vnet
to another.
Do a style improvement while here.
Affected files ...
.. //depot/projects/vimage-commit2/src/sys/kern/kern_vimage.c#38 edit
Differences ...
==== //depot/projects/vimage-commit2/src/sys/kern/kern_vimage.c#38 (text+ko) ====
@@ -128,7 +128,8 @@
void
if_reassign_common(struct ifnet *ifp, struct vnet *new_vnet, const char *dname)
{
- /* do/while construct needed to confine scope of INIT_VNET_NET() */
+
+ /* do / while construct needed to confine scope of INIT_VNET_NET(). */
do {
INIT_VNET_NET(curvnet);
@@ -162,6 +163,7 @@
ifnet_setbyindex(ifp->if_index, ifp);
IFNET_WUNLOCK();
+#ifdef NOTYET
/* Rename the ifnet */
if (new_vnet == ifp->if_home_vnet) {
/* always restore the original name on return to home vnet */
@@ -179,6 +181,7 @@
unit++;
} while (iter);
}
+#endif
CURVNET_RESTORE();
}
More information about the p4-projects
mailing list