summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-03-20 05:48:55 +0000
committerjeff <jeff@FreeBSD.org>2002-03-20 05:48:55 +0000
commit0a59f1223c856d6130a3ef3b5c5f27b2a6a2296f (patch)
tree98de9110564f1f77eb5a36056b5243f528e87004 /sys/netinet/tcp_subr.c
parentdcd2af765542f95ecc4d1a0842c71e1e84733af8 (diff)
downloadFreeBSD-src-0a59f1223c856d6130a3ef3b5c5f27b2a6a2296f.zip
FreeBSD-src-0a59f1223c856d6130a3ef3b5c5f27b2a6a2296f.tar.gz
Switch vm_zone.h with uma.h. Change over to uma interfaces.
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index cec858c..fb71ac7 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -55,7 +55,7 @@
#include <sys/protosw.h>
#include <sys/random.h>
-#include <vm/vm_zone.h>
+#include <vm/uma.h>
#include <net/route.h>
#include <net/if.h>
@@ -212,8 +212,9 @@ tcp_init()
tcbinfo.hashbase = hashinit(hashsize, M_PCB, &tcbinfo.hashmask);
tcbinfo.porthashbase = hashinit(hashsize, M_PCB,
&tcbinfo.porthashmask);
- tcbinfo.ipi_zone = zinit("tcpcb", sizeof(struct inp_tp), maxsockets,
- ZONE_INTERRUPT, 0);
+ tcbinfo.ipi_zone = uma_zcreate("tcpcb", sizeof(struct inp_tp),
+ NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
+ uma_zone_set_max(tcbinfo.ipi_zone, maxsockets);
#ifdef INET6
#define TCP_MINPROTOHDR (sizeof(struct ip6_hdr) + sizeof(struct tcphdr))
#else /* INET6 */
OpenPOWER on IntegriCloud