osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/meta-telephony/+/27358 )
Change subject: osmo-ggsn: rebase libgtp-queue_depth_32.patch ......................................................................
osmo-ggsn: rebase libgtp-queue_depth_32.patch
Adjust to change in osmo-ggsn I6034b0fab2b2e5962314c2fca2f893246ce5cf4f ("libgtp: Define retransmit QUEUE_SIZE relative to PDP_MAX (increase)").
Fix for: Applying patch libgtp-queue_depth_32.patch patching file gtp/queue.h Hunk #1 FAILED at 19.
Change-Id: Ib8803fba7d1308042d12186009344b2a61abb6e3 --- M recipes-osmocom/osmo-ggsn/files/libgtp-queue_depth_32.patch 1 file changed, 32 insertions(+), 11 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/meta-telephony refs/changes/58/27358/1
diff --git a/recipes-osmocom/osmo-ggsn/files/libgtp-queue_depth_32.patch b/recipes-osmocom/osmo-ggsn/files/libgtp-queue_depth_32.patch index 52bc37b..99e5dd5 100644 --- a/recipes-osmocom/osmo-ggsn/files/libgtp-queue_depth_32.patch +++ b/recipes-osmocom/osmo-ggsn/files/libgtp-queue_depth_32.patch @@ -1,13 +1,34 @@ -diff --git a/gtp/queue.h b/gtp/queue.h -index 556b6ef..d59a1a3 100644 ---- a/gtp/queue.h -+++ b/gtp/queue.h -@@ -19,7 +19,7 @@ +From 295d85927658a734cf544e03abd28ec33c5bfb2c Mon Sep 17 00:00:00 2001 +From: Oliver Smith osmith@sysmocom.de +Date: Wed, 2 Mar 2022 11:24:31 +0100 +Subject: [PATCH] libgtp: reduce queue depth to 32 + +Set PDP_MAX to 16 and QUEUE_SIZE to 32 (QUEUE_SIZE is PDP_MAX * 2, see +gtp/queue.h). Harald explained why: + + libgtp statically allocates immensely large queues for packet + re-transmissions by default, way too much to run OsmoSGSN or + OpenGGSN/OsmoGGSN on the small ARM926EJS of sysmoBTS 1002. + +Related: https://gerrit.osmocom.org/c/meta-telephony/+/4092/2#message-8ec2174fac6c0bf... +Change-Id: I97d5db8f2def4d628a6c4e67c27f07c7200b94d4 +--- + gtp/pdp.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gtp/pdp.h b/gtp/pdp.h +index 4dcdde46..5db08af3 100644 +--- a/gtp/pdp.h ++++ b/gtp/pdp.h +@@ -24,7 +24,7 @@ struct gsn_t; + #define LOGPDPX(ss, level, pdp, fmt, args...) \ + LOGP(ss, level, "PDP(%s:%u): " fmt, imsi_gtp2str(&(pdp)->imsi), (pdp)->nsapi, ## args)
- #define QUEUE_DEBUG 0 /* Print debug information */ +-#define PDP_MAX 1024 /* Max number of PDP contexts */ ++#define PDP_MAX 16 /* Max number of PDP contexts */ + #define PDP_MAXNSAPI 16 /* Max number of NSAPI */
--#define QUEUE_SIZE 1024 /* Size of retransmission queue */ -+#define QUEUE_SIZE 32 /* Size of retransmission queue */ - #define QUEUE_HASH_SIZE 65536 /* Size of hash table (2^16) */ - - struct qmsg_t { /* Holder for queued packets */ + #define PDP_EUA_ORG_IETF 0xF1 +-- +2.30.2 +