Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Sep 2008 17:52:44 GMT
From:      Marko Zec <zec@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 150127 for review
Message-ID:  <200809191752.m8JHqijT062143@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=150127

Change 150127 by zec@zec_tpx32 on 2008/09/19 17:52:08

	Explain why CURVNET_SET() is required in ng_eiface_rmnode().

Affected files ...

.. //depot/projects/vimage-commit2/src/sys/netgraph/ng_eiface.c#8 edit

Differences ...

==== //depot/projects/vimage-commit2/src/sys/netgraph/ng_eiface.c#8 (text+ko) ====

@@ -550,6 +550,10 @@
 	const priv_p priv = NG_NODE_PRIVATE(node);
 	struct ifnet *const ifp = priv->ifp;
 
+	/*
+	 * the ifnet may be in a different vnet than the netgraph node, 
+	 * hence we have to change the current vnet context here.
+	 */
 	CURVNET_SET_QUIET(ifp->if_vnet);
 	ether_ifdetach(ifp);
 	if_free(ifp);



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