diff options
author | jeff <jeff@FreeBSD.org> | 2002-03-20 05:48:55 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-03-20 05:48:55 +0000 |
commit | 0a59f1223c856d6130a3ef3b5c5f27b2a6a2296f (patch) | |
tree | 98de9110564f1f77eb5a36056b5243f528e87004 /sys/netinet/raw_ip.c | |
parent | dcd2af765542f95ecc4d1a0842c71e1e84733af8 (diff) | |
download | FreeBSD-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/raw_ip.c')
-rw-r--r-- | sys/netinet/raw_ip.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index 709a919..1f533e1 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -49,7 +49,7 @@ #include <sys/socketvar.h> #include <sys/sysctl.h> -#include <vm/vm_zone.h> +#include <vm/uma.h> #include <net/if.h> #include <net/route.h> @@ -102,8 +102,9 @@ rip_init() */ ripcbinfo.hashbase = hashinit(1, M_PCB, &ripcbinfo.hashmask); ripcbinfo.porthashbase = hashinit(1, M_PCB, &ripcbinfo.porthashmask); - ripcbinfo.ipi_zone = zinit("ripcb", sizeof(struct inpcb), - maxsockets, ZONE_INTERRUPT, 0); + ripcbinfo.ipi_zone = uma_zcreate("ripcb", sizeof(struct inpcb), + NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); + uma_zone_set_max(ripcbinfo.ipi_zone, maxsockets); } static struct sockaddr_in ripsrc = { sizeof(ripsrc), AF_INET }; |