diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2021-09-27 08:56:20 +0200 |
---|---|---|
committer | neels <nhofmeyr@sysmocom.de> | 2021-11-10 13:27:43 +0000 |
commit | aa09938d2c88c6810eb5c3634958824277bfacab (patch) | |
tree | 416d6d02b769a11cb5e27615424f97606901d885 /src/osmo-bsc/bsc_init.c | |
parent | 41f143827d4233963b3a1b5e6a98ea7efa0f0fe1 (diff) |
implement all_allocated:{static_sdcch,static_tch} rate counters
Same as all_allocated:{sdcch,tch}, but already trigger when all
non-dynamic timeslots are allocated.
Related: SYS#4878
Related: Ib3997a827c9cc43d1361bb0cf3bfab9f6d91bf82 (osmo-ttcn3-hacks)
Change-Id: I2fa14531f16d3f07085620f1c50eb839c420da6a
Diffstat (limited to 'src/osmo-bsc/bsc_init.c')
-rw-r--r-- | src/osmo-bsc/bsc_init.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/osmo-bsc/bsc_init.c b/src/osmo-bsc/bsc_init.c index 11cda6983..93287072d 100644 --- a/src/osmo-bsc/bsc_init.c +++ b/src/osmo-bsc/bsc_init.c @@ -131,6 +131,17 @@ static struct gsm_network *bsc_network_init(void *ctx) .T_defs = net->T_defs, }, }; + net->all_allocated_static_sdcch = (struct time_cc){ + .cfg = { + .gran_usec = 1*1000000, + .forget_sum_usec = 60*1000000, + .rate_ctr = rate_ctr_group_get_ctr(net->bsc_ctrs, BSC_CTR_ALL_ALLOCATED_STATIC_SDCCH), + .T_gran = -16, + .T_round_threshold = -17, + .T_forget_sum = -18, + .T_defs = net->T_defs, + }, + }; net->all_allocated_tch = (struct time_cc){ .cfg = { .gran_usec = 1*1000000, @@ -142,6 +153,17 @@ static struct gsm_network *bsc_network_init(void *ctx) .T_defs = net->T_defs, }, }; + net->all_allocated_static_tch = (struct time_cc){ + .cfg = { + .gran_usec = 1*1000000, + .forget_sum_usec = 60*1000000, + .rate_ctr = rate_ctr_group_get_ctr(net->bsc_ctrs, BSC_CTR_ALL_ALLOCATED_STATIC_TCH), + .T_gran = -16, + .T_round_threshold = -17, + .T_forget_sum = -18, + .T_defs = net->T_defs, + }, + }; INIT_LLIST_HEAD(&net->bts_rejected); gsm_net_update_ctype(net); |