From 1ddba8d63e51fc0cc951a54c8c9fa7248bbf2bda Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Thu, 22 Jan 2004 23:14:48 +0000 Subject: Move the reduction by one of the syncache limit after the zone has been allocated. Reviewed by: sam (mentor) Obtained from: DragonFlyBSD rev 1.6 (hsu) --- sys/netinet/tcp_syncache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netinet/tcp_syncache.c') diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 1fbb4e8263fd..4c9d0af13867 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -255,10 +255,10 @@ syncache_init(void) * more entry than cache limit, so a new entry can bump out an * older one. */ - tcp_syncache.cache_limit -= 1; tcp_syncache.zone = uma_zcreate("syncache", sizeof(struct syncache), NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); uma_zone_set_max(tcp_syncache.zone, tcp_syncache.cache_limit); + tcp_syncache.cache_limit -= 1; } static void -- cgit v1.2.3