Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 May 2009 02:38:21 GMT
From:      Marko Zec <zec@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 161807 for review
Message-ID:  <200905090238.n492cLbe065432@repoman.freebsd.org>

index | next in thread | raw e-mail

http://perforce.freebsd.org/chv.cgi?CH=161807

Change 161807 by zec@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);


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905090238.n492cLbe065432>