aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2014-12-06 02:59:59 +0000
committerCraig Rodrigues <rodrigc@FreeBSD.org>2014-12-06 02:59:59 +0000
commita8da5dd65828ce5fedd762d2dade91380a833176 (patch)
tree97c66a1a76faa8098511f8ce1ed8a2bd875593bb /sys/netinet/udp_usrreq.c
parentb741402c40bbc6fbc6917b2f6068992fd4de333f (diff)
downloadsrc-a8da5dd65828ce5fedd762d2dade91380a833176.tar.gz
src-a8da5dd65828ce5fedd762d2dade91380a833176.zip
MFp4: @181627
Allow UMA allocated memory to be freed when VNET jails are torn down. Differential Revision: D1201 Submitted by: bz Reviewed by: rwatson, gnn
Notes
Notes: svn path=/head/; revision=275555
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 5fd93b3bcff9..f392665d20c0 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -216,10 +216,10 @@ udp_init(void)
* a 4-tuple, flip this to 4-tuple.
*/
in_pcbinfo_init(&V_udbinfo, "udp", &V_udb, UDBHASHSIZE, UDBHASHSIZE,
- "udp_inpcb", udp_inpcb_init, NULL, UMA_ZONE_NOFREE,
+ "udp_inpcb", udp_inpcb_init, NULL, 0,
IPI_HASHFIELDS_2TUPLE);
V_udpcb_zone = uma_zcreate("udpcb", sizeof(struct udpcb),
- NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
+ NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
uma_zone_set_max(V_udpcb_zone, maxsockets);
uma_zone_set_warning(V_udpcb_zone, "kern.ipc.maxsockets limit reached");
EVENTHANDLER_REGISTER(maxsockets_change, udp_zone_change, NULL,
@@ -232,7 +232,7 @@ udplite_init(void)
in_pcbinfo_init(&V_ulitecbinfo, "udplite", &V_ulitecb, UDBHASHSIZE,
UDBHASHSIZE, "udplite_inpcb", udplite_inpcb_init, NULL,
- UMA_ZONE_NOFREE, IPI_HASHFIELDS_2TUPLE);
+ 0, IPI_HASHFIELDS_2TUPLE);
}
/*