summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.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/in_pcb.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/in_pcb.c')
-rw-r--r--sys/netinet/in_pcb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index ff124bc..c7e4ecb 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -52,7 +52,7 @@
#include <machine/limits.h>
-#include <vm/vm_zone.h>
+#include <vm/uma.h>
#include <net/if.h>
#include <net/if_types.h>
@@ -144,7 +144,7 @@ in_pcballoc(so, pcbinfo, td)
int error;
#endif
- inp = zalloc(pcbinfo->ipi_zone);
+ inp = uma_zalloc(pcbinfo->ipi_zone, M_WAITOK);
if (inp == NULL)
return (ENOBUFS);
bzero((caddr_t)inp, sizeof(*inp));
@@ -154,7 +154,7 @@ in_pcballoc(so, pcbinfo, td)
#ifdef IPSEC
error = ipsec_init_policy(so, &inp->inp_sp);
if (error != 0) {
- zfree(pcbinfo->ipi_zone, inp);
+ uma_zfree(pcbinfo->ipi_zone, inp);
return error;
}
#endif /*IPSEC*/
@@ -573,7 +573,7 @@ in_pcbdetach(inp)
rtfree(inp->inp_route.ro_rt);
ip_freemoptions(inp->inp_moptions);
inp->inp_vflag = 0;
- zfree(ipi->ipi_zone, inp);
+ uma_zfree(ipi->ipi_zone, inp);
}
/*
OpenPOWER on IntegriCloud