[PATCH] osmo-bsc[master]: bts chan_load: ignore unusable BTS

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Thu Feb 15 17:48:56 UTC 2018

Review at  https://gerrit.osmocom.org/6510

bts chan_load: ignore unusable BTS

For unconnected BTS, the channel load would report a "bogus channel load
sample" every second (on RLL debug). Instead, skip unusable BTS.

This follows up on commit 6cee893a0f2c4e53155a2631aff12a5f615b973d /
'Make "waiting indicator" of IMMEDIATE ASSIGN REJECT dynamic.'

Change-Id: I627fe10e1f5c1f2f23745c906320871024b5c8c3
M src/libbsc/chan_alloc.c
1 file changed, 5 insertions(+), 0 deletions(-)

  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/10/6510/1

diff --git a/src/libbsc/chan_alloc.c b/src/libbsc/chan_alloc.c
index 500ad59..42a9e73 100644
--- a/src/libbsc/chan_alloc.c
+++ b/src/libbsc/chan_alloc.c
@@ -606,6 +606,11 @@
 	static const uint8_t max_wait_ind = 128; /* max wait ~2 minutes */
 	int i;
+	/* Ignore BTS that are not in operation, in order to not flood the log with "bogus channel load"
+	 * messages */
+	if (!trx_is_usable(bts->c0))
+		return;
 	/* Sum up current load across all channels. */
 	memset(&pl, 0, sizeof(pl));
 	bts_chan_load(&pl, bts);

To view, visit https://gerrit.osmocom.org/6510
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I627fe10e1f5c1f2f23745c906320871024b5c8c3
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>

More information about the gerrit-log mailing list