PERFORCE change 111251 for review

Marko Zec zec at FreeBSD.org
Thu Dec 7 09:05:38 PST 2006


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

Change 111251 by zec at zec_tca51 on 2006/12/07 16:52:23

	Only setup the timer to run tcp_hc_callout() once, since
	tcp_hc_callout() will traverse through all the vnets in
	a single invocation.

Affected files ...

.. //depot/projects/vimage/src/sys/netinet/tcp_hostcache.c#4 edit

Differences ...

==== //depot/projects/vimage/src/sys/netinet/tcp_hostcache.c#4 (text+ko) ====

@@ -216,9 +216,15 @@
 	/*
 	 * Set up periodic cache cleanup.
 	 */
+#ifdef VIMAGE
+	if (curvnetb == &vnetb_0) {
+#endif
 	callout_init(&tcp_hc_callout, CALLOUT_MPSAFE);
 	callout_reset(&tcp_hc_callout, TCP_HOSTCACHE_PRUNE * hz,
 		      tcp_hc_purge, 0);
+#ifdef VIMAGE
+	}
+#endif
 }
 
 /*


More information about the p4-projects mailing list