summaryrefslogtreecommitdiffstats
path: root/sys/netatm/uni
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/uni
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/uni')
-rw-r--r--sys/netatm/uni/sscf_uni.c2
-rw-r--r--sys/netatm/uni/sscop.c1
-rw-r--r--sys/netatm/uni/uniarp.c1
-rw-r--r--sys/netatm/uni/uniip.c1
-rw-r--r--sys/netatm/uni/unisig_if.c4
5 files changed, 0 insertions, 9 deletions
diff --git a/sys/netatm/uni/sscf_uni.c b/sys/netatm/uni/sscf_uni.c
index dc51e72..47ed863 100644
--- a/sys/netatm/uni/sscf_uni.c
+++ b/sys/netatm/uni/sscf_uni.c
@@ -117,8 +117,6 @@ sscf_uni_start()
if (sscf_uni_zone == NULL)
panic("sscf_uni_start: uma_zcreate");
- uma_zone_set_max(sscf_uni_zone, 100);
-
/*
* Register stack service
*/
diff --git a/sys/netatm/uni/sscop.c b/sys/netatm/uni/sscop.c
index 5d0426b..cc424be 100644
--- a/sys/netatm/uni/sscop.c
+++ b/sys/netatm/uni/sscop.c
@@ -152,7 +152,6 @@ sscop_start()
NULL, NULL, UMA_ALIGN_PTR, 0);
if (sscop_zone == NULL)
panic("sscop_start: uma_zcreate");
- uma_zone_set_max(sscop_zone, 100);
/*
* Register stack service
diff --git a/sys/netatm/uni/uniarp.c b/sys/netatm/uni/uniarp.c
index 9a3ea78..a34c31e 100644
--- a/sys/netatm/uni/uniarp.c
+++ b/sys/netatm/uni/uniarp.c
@@ -126,7 +126,6 @@ uniarp_start()
NULL, NULL, UMA_ALIGN_PTR, 0);
if (uniarp_zone == NULL)
panic("uniarp_start: uma_zcreate");
- uma_zone_set_max(uniarp_zone, 200);
/*
* Register our endpoint
diff --git a/sys/netatm/uni/uniip.c b/sys/netatm/uni/uniip.c
index 60f02b2..1e07d75 100644
--- a/sys/netatm/uni/uniip.c
+++ b/sys/netatm/uni/uniip.c
@@ -105,7 +105,6 @@ uniip_start()
NULL, NULL, UMA_ALIGN_PTR, 0);
if (uniip_zone == NULL)
panic("uniip_start: uma_zcreate");
- uma_zone_set_max(uniip_zone, 100);
/*
* Tell arp to initialize stuff
diff --git a/sys/netatm/uni/unisig_if.c b/sys/netatm/uni/unisig_if.c
index 6005932b..9853b8a 100644
--- a/sys/netatm/uni/unisig_if.c
+++ b/sys/netatm/uni/unisig_if.c
@@ -169,10 +169,6 @@ unisig_start()
if (unisig_ie_zone == NULL)
panic("unisig_start: uma_zcreate failed to create ie zone");
- uma_zone_set_max(unisig_vc_zone, 50);
- uma_zone_set_max(unisig_msg_zone, 50);
- uma_zone_set_max(unisig_ie_zone, 50);
-
/*
* Register ourselves with system
*/
OpenPOWER on IntegriCloud