aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/abis_rsl.c
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2020-09-10 20:12:37 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2020-09-11 14:38:54 +0200
commit3c6e86adce261696a330c7d45b63969e477949c5 (patch)
tree51bc0cac57762a4a464f9e9eede6420d16da3a22 /src/osmo-bsc/abis_rsl.c
parent1482ec481393f8812ab9672edf7cb8710dea39cc (diff)
abis_rsl: inform user when expired channel requests get tossed
At the moment expired channel requests are dropped silently, however, it might help to know when this happens - not only for debugging. Change-Id: Ib49df551a4cd7d5652e85c8ce29ef132385d4ae4 Related: OS#4549
Diffstat (limited to 'src/osmo-bsc/abis_rsl.c')
-rw-r--r--src/osmo-bsc/abis_rsl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/osmo-bsc/abis_rsl.c b/src/osmo-bsc/abis_rsl.c
index c0907c0a8..347be129f 100644
--- a/src/osmo-bsc/abis_rsl.c
+++ b/src/osmo-bsc/abis_rsl.c
@@ -1384,10 +1384,14 @@ static void reduce_rach_dos(struct gsm_bts *bts)
llist_for_each_entry_safe(rqd, rqd_tmp, &bts->chan_rqd_queue, entry) {
/* If the channel request is older than the radio link timeout we drop it. This also means that the
* queue is under its overflow limit again. */
- if (timestamp_current - rqd->timestamp > rlt)
+ if (timestamp_current - rqd->timestamp > rlt) {
+ LOG_BTS(bts, DRSL, LOGL_INFO, "CHAN RQD: tossing expired channel request"
+ "(ra=0x%02x, neci=0x%02x, chreq_reason=0x%02x)\n",
+ rqd->ref.ra, bts->network->neci, rqd->reason);
llist_del(&rqd->entry);
- else
+ } else {
rqd_count++;
+ }
}
/* If we find more than 255 (256) unexpired channel requests in the queue it is very likely that there is a