Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2006 16:53:19 GMT
From:      Marko Zec <zec@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 111251 for review
Message-ID:  <200612071653.kB7GrJNw011795@repoman.freebsd.org>

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

Change 111251 by zec@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
 }
 
 /*



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