Oliver Smith | c7b65fa | 2022-03-02 11:32:59 +0100 | [diff] [blame] | 1 | From 2e0112520892b8f6a794c16bf3d025a7d10a89a5 Mon Sep 17 00:00:00 2001 |
| 2 | From: Oliver Smith <osmith@sysmocom.de> |
| 3 | Date: Wed, 2 Mar 2022 11:24:31 +0100 |
| 4 | Subject: [PATCH] libgtp: set PDP_MAX to 128 |
| 5 | |
| 6 | Reduce PDP_MAX and therefore QUEUE_SIZE (which is PDP_MAX * 2, see |
| 7 | gtp/queue.h). Harald explained why: |
| 8 | |
| 9 | libgtp statically allocates immensely large queues for packet |
| 10 | re-transmissions by default, way too much to run OsmoSGSN or |
| 11 | OpenGGSN/OsmoGGSN on the small ARM926EJS of sysmoBTS 1002. |
| 12 | |
| 13 | Related: https://gerrit.osmocom.org/c/meta-telephony/+/4092/2#message-8ec2174fac6c0bf3d9aab1270a7ebe06955d3bea |
| 14 | Change-Id: I97d5db8f2def4d628a6c4e67c27f07c7200b94d4 |
| 15 | --- |
| 16 | gtp/pdp.h | 2 +- |
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 18 | |
| 19 | diff --git a/gtp/pdp.h b/gtp/pdp.h |
| 20 | index 4dcdde46..9587f31e 100644 |
| 21 | --- a/gtp/pdp.h |
| 22 | +++ b/gtp/pdp.h |
| 23 | @@ -24,7 +24,7 @@ struct gsn_t; |
| 24 | #define LOGPDPX(ss, level, pdp, fmt, args...) \ |
| 25 | LOGP(ss, level, "PDP(%s:%u): " fmt, imsi_gtp2str(&(pdp)->imsi), (pdp)->nsapi, ## args) |
| 26 | |
| 27 | -#define PDP_MAX 1024 /* Max number of PDP contexts */ |
| 28 | +#define PDP_MAX 128 /* Max number of PDP contexts */ |
| 29 | #define PDP_MAXNSAPI 16 /* Max number of NSAPI */ |
| 30 | |
| 31 | #define PDP_EUA_ORG_IETF 0xF1 |
| 32 | -- |
| 33 | 2.30.2 |
| 34 | |