summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_divert.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/ip_divert.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/ip_divert.c')
-rw-r--r--sys/netinet/ip_divert.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c
index 2fa823f..25a5329 100644
--- a/sys/netinet/ip_divert.c
+++ b/sys/netinet/ip_divert.c
@@ -53,7 +53,7 @@
#include <sys/sysctl.h>
#include <sys/systm.h>
-#include <vm/vm_zone.h>
+#include <vm/uma.h>
#include <net/if.h>
#include <net/route.h>
@@ -120,8 +120,9 @@ div_init(void)
*/
divcbinfo.hashbase = hashinit(1, M_PCB, &divcbinfo.hashmask);
divcbinfo.porthashbase = hashinit(1, M_PCB, &divcbinfo.porthashmask);
- divcbinfo.ipi_zone = zinit("divcb", sizeof(struct inpcb),
- maxsockets, ZONE_INTERRUPT, 0);
+ divcbinfo.ipi_zone = uma_zcreate("divcb", sizeof(struct inpcb),
+ NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
+ uma_zone_set_max(divcbinfo.ipi_zone, maxsockets);
}
/*
OpenPOWER on IntegriCloud