diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-05-21 01:36:51 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-05-21 02:42:00 +0200 |
commit | 0f9595f462230a6100f2f92f92ed0bc11d7b596b (patch) | |
tree | 2603edb07753b74ace12b196285c1e300b0975e3 /include | |
parent | 067824841f6b1139e3a926b355826454a3f371b2 (diff) |
cbch: Keep SMSCB queue length counter
This avoids having to iterate the list to count the number of elements.
Change-Id: I72c47affeb87c9b898bc2290dc7ed113945f1805
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/gsm_data_shared.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmo-bts/gsm_data_shared.h b/include/osmo-bts/gsm_data_shared.h index 93787304..860c296c 100644 --- a/include/osmo-bts/gsm_data_shared.h +++ b/include/osmo-bts/gsm_data_shared.h @@ -541,6 +541,7 @@ struct gprs_rlc_cfg { struct bts_smscb_state { struct llist_head queue; /* list of struct smscb_msg */ + int queue_len; struct smscb_msg *cur_msg; /* current SMS-CB */ struct smscb_msg *default_msg; /* default broadcast message; NULL if none */ }; |