summaryrefslogtreecommitdiffstats
path: root/sys/netatm/ipatm
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-07-22 12:46:30 +0000
committerharti <harti@FreeBSD.org>2003-07-22 12:46:30 +0000
commitef0c913256e9dc1649f9a1717272d7ac66142e52 (patch)
treefe0192056d1d484956a504da31f19e63d36c82b2 /sys/netatm/ipatm
parent94d1a5de21a31c87cea17a35bf16a2e3665dfbf3 (diff)
downloadFreeBSD-src-ef0c913256e9dc1649f9a1717272d7ac66142e52.zip
FreeBSD-src-ef0c913256e9dc1649f9a1717272d7ac66142e52.tar.gz
Remove the zone limits for all the zones used in the ATM code.
These were a left over from when the private memory pools were converted to use uma zones. The limit of UMA zones, however, works differently. When a zone is limited to only one or two pages than, on multi-cpu systems, processes can get stuck on the zonelimit, because all remaining free items are in caches of other CPUs. Also add rudimentary error handling in some places (panic) when a zone cannot be created.
Diffstat (limited to 'sys/netatm/ipatm')
-rw-r--r--sys/netatm/ipatm/ipatm_load.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netatm/ipatm/ipatm_load.c b/sys/netatm/ipatm/ipatm_load.c
index 3cab0c5a..be9560c 100644
--- a/sys/netatm/ipatm/ipatm_load.c
+++ b/sys/netatm/ipatm/ipatm_load.c
@@ -402,13 +402,11 @@ ipatm_start()
NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
if (ipatm_vc_zone == NULL)
panic("ipatm_start: unable to create ipatm_vc_zone");
- uma_zone_set_max(ipatm_vc_zone, 100);
ipatm_nif_zone = uma_zcreate("ipatm nif", sizeof(struct ip_nif), NULL,
NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
if (ipatm_nif_zone == NULL)
panic("ipatm_start: unable to create ipatm_nif_zone");
- uma_zone_set_max(ipatm_nif_zone, 52);
/*
* Register ourselves as a network convergence module
OpenPOWER on IntegriCloud