PERFORCE change 150127 for review
Marko Zec
zec at FreeBSD.org
Fri Sep 19 17:52:45 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=150127
Change 150127 by zec at 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);
More information about the p4-projects
mailing list