PERFORCE change 128453 for review

Marko Zec zec at FreeBSD.org
Thu Nov 1 02:28:11 PDT 2007


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

Change 128453 by zec at zec_tpx32 on 2007/11/01 09:27:42

	Set / clear vnet context in ng_callout_trampoline(), which
	is timer driven and as such has no vnet context on entry.

Affected files ...

.. //depot/projects/vimage/src/sys/netgraph/ng_base.c#22 edit

Differences ...

==== //depot/projects/vimage/src/sys/netgraph/ng_base.c#22 (text+ko) ====

@@ -3867,7 +3867,9 @@
 {
 	item_p item = arg;
 
+	CURVNET_SET(NGI_NODE(item)->nd_vnet);
 	ng_snd_item(item, 0);
+	CURVNET_RESTORE();
 }
 
 


More information about the p4-projects mailing list