aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-12-22 12:34:39 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-12-24 21:40:47 +0100
commitdaee5ca7c1019ba973a00f5109256f64873b1b13 (patch)
tree41b1ff71210c7ab0b54bbb8aa1a2b5e2122e69d0 /openbsc/include
parenta29e43a26fae23d5132461cf7bfa43a1ca64761f (diff)
subscr: Make it possible to keep subscribers in RAM.
This is implemented by not freeing the subscriber when the reference count becomes smaller than zero. We hope that this will save many database accesses during the congres.
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/gsm_data.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index b9ec94cf9..f42ae1b4a 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -730,6 +730,9 @@ struct gsm_network {
/* MSC data in case we are a true BSC */
struct osmo_msc_data *msc_data;
int hardcoded_rtp_payload;
+
+ /* subscriber related features */
+ int keep_subscr;
};
#define SMS_HDR_SIZE 128