aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2002-03-20 05:48:55 +0000
committerJeff Roberson <jeff@FreeBSD.org>2002-03-20 05:48:55 +0000
commit69c2d429c13b29b1cb66d1990d969d1314f5960f (patch)
tree98de9110564f1f77eb5a36056b5243f528e87004 /sys/netinet/udp_usrreq.c
parent586c8b6b29fed9a5e82b424be7c2f7249e0d69e0 (diff)
Notes
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index e4f7e0d73a76..4426aa9433eb 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -51,7 +51,7 @@
#include <sys/syslog.h>
#include <sys/jail.h>
-#include <vm/vm_zone.h>
+#include <vm/uma.h>
#include <net/if.h>
#include <net/route.h>
@@ -144,8 +144,9 @@ udp_init()
udbinfo.hashbase = hashinit(UDBHASHSIZE, M_PCB, &udbinfo.hashmask);
udbinfo.porthashbase = hashinit(UDBHASHSIZE, M_PCB,
&udbinfo.porthashmask);
- udbinfo.ipi_zone = zinit("udpcb", sizeof(struct inpcb), maxsockets,
- ZONE_INTERRUPT, 0);
+ udbinfo.ipi_zone = uma_zcreate("udpcb", sizeof(struct inpcb), NULL,
+ NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
+ uma_zone_set_max(udbinfo.ipi_zone, maxsockets);
}
void