PERFORCE change 150128 for review

Marko Zec zec at FreeBSD.org
Fri Sep 19 17:55:48 UTC 2008


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

Change 150128 by zec at 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);


More information about the p4-projects mailing list