aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-05-06 15:41:51 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2022-05-09 17:50:38 +0200
commit712a6647b1b3f397aa624fb50a1bac42550e9321 (patch)
tree6475d4b84d23da08350e7874070824651e05b191 /include
parent52b910ebbdbeca5a423bdeb5bfa08a74f253ce23 (diff)
paging: Avoid queueing more than 60 second estimated requests
Reaching this point will only make system load (CPU, mem) grow, making it hard for the process to keep up with work to do, with no benefit since the requests will anyway be scheduled too late. Related: SYS#5922 Change-Id: I6523c6816a4d16b71084d004e979be40cf0aeeb0
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/bsc/bts.h1
-rw-r--r--include/osmocom/bsc/paging.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/bsc/bts.h b/include/osmocom/bsc/bts.h
index 9e50e2de1..77b54c947 100644
--- a/include/osmocom/bsc/bts.h
+++ b/include/osmocom/bsc/bts.h
@@ -55,6 +55,7 @@ enum bts_counter_id {
BTS_CTR_PAGING_EXPIRED,
BTS_CTR_PAGING_NO_ACTIVE_PAGING,
BTS_CTR_PAGING_MSC_FLUSH,
+ BTS_CTR_PAGING_OVERLOAD,
BTS_CTR_CHAN_ACT_TOTAL,
BTS_CTR_CHAN_ACT_SDCCH,
BTS_CTR_CHAN_ACT_TCH,
diff --git a/include/osmocom/bsc/paging.h b/include/osmocom/bsc/paging.h
index 9eddda0c7..819f47827 100644
--- a/include/osmocom/bsc/paging.h
+++ b/include/osmocom/bsc/paging.h
@@ -101,6 +101,8 @@ struct gsm_paging_request {
struct gsm_bts_paging_state {
/* pending requests */
struct llist_head pending_requests;
+ /* Number of requests in pending_requests_len */
+ unsigned int pending_requests_len;
struct gsm_bts *bts;
struct osmo_timer_list work_timer;