diff options
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 9a8fd13e121..9520dd2552a 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf.c,v 1.67 2004/04/19 22:52:33 tedu Exp $ */ +/* $OpenBSD: uipc_mbuf.c,v 1.68 2004/05/23 19:37:24 tedu Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */ /* @@ -92,6 +92,9 @@ struct mbstat mbstat; /* mbuf stats */ struct pool mbpool; /* mbuf pool */ struct pool mclpool; /* mbuf cluster pool */ +struct pool_cache mbpool_cache; +struct pool_cache mclpool_cache; + struct vm_map *mb_map; int max_linkhdr; /* largest link-level header */ @@ -124,6 +127,9 @@ mbinit() pool_set_drain_hook(&mbpool, m_reclaim, NULL); pool_set_drain_hook(&mclpool, m_reclaim, NULL); + pool_cache_init(&mbpool_cache, &mbpool, NULL, NULL, NULL); + pool_cache_init(&mclpool_cache, &mclpool, NULL, NULL, NULL); + nmbclust_update(); /* |