PERFORCE change 123438 for review

Ana Kukec anchie at FreeBSD.org
Fri Jul 13 13:01:05 UTC 2007


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

Change 123438 by anchie at anchie_malimis on 2007/07/13 13:00:13

	Remove a stale printf(). 
	
	Do not schedule key_timehandler() more than once.	

Affected files ...

.. //depot/projects/vimage/src/sys/netipsec/key.c#6 edit

Differences ...

==== //depot/projects/vimage/src/sys/netipsec/key.c#6 (text+ko) ====

@@ -7149,8 +7149,6 @@
 	INIT_VNET_IPSEC(curvnet);
 	int i;
 
-	printf(" ---> key_init <---\n");
-
 	V_key_debug_level = 0;
 	V_key_spi_trycnt = 1000;
 	V_key_spi_minval = 0x100;
@@ -7201,7 +7199,13 @@
 	V_ip4_def_policy.refcnt++;	/*never reclaim this*/
 
 #ifndef IPSEC_DEBUG2
+#ifdef VIMAGE
+	if (curvnet == &vnet_0) {
+#endif
 	timeout((void *)key_timehandler, (void *)0, hz);
+#ifdef VIMAGE
+	}
+#endif
 #endif /*IPSEC_DEBUG2*/
 
 	/* initialize key statistics */


More information about the p4-projects mailing list