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

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

Change 150128 by zec@zec_tpx32 on 2008/09/19 17:54:54

	Add comment.

Affected files ...

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

Differences ...

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

@@ -770,6 +770,10 @@
 	INIT_VNET_NETGRAPH(curvnet);
 	const priv_p priv = NG_NODE_PRIVATE(node);
 
+	/*
+	 * 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(priv->ifp->if_vnet);
 	bpfdetach(priv->ifp);
 	if_detach(priv->ifp);



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