diff options
author | arehbein <arehbein@sysmocom.de> | 2023-09-20 16:18:20 +0200 |
---|---|---|
committer | arehbein <arehbein@sysmocom.de> | 2023-11-20 00:08:04 +0100 |
commit | e2acba5cfa34fa0860a2c2dcaac3e8b1843bd3b6 (patch) | |
tree | a649c06541055d5a01821f9dc0403668be9918d4 /src/osmo-bsc/bts_init.c | |
parent | 1df2167748256c6d61a4f3f06898f85db1d1c6c5 (diff) |
Make NSE timing data configurablearehbein/rlc_timer_cfg_wip
Also: Deprecate/hide old respective VTY command,
while preserving backwards compatibility
for NSE timing data configuration.
Related: OS#5335
Change-Id: Ie46ec5cb7095bc1dfe3effd0e76d6ccfd6bd2f3f
Diffstat (limited to 'src/osmo-bsc/bts_init.c')
-rw-r--r-- | src/osmo-bsc/bts_init.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/osmo-bsc/bts_init.c b/src/osmo-bsc/bts_init.c index a4a4320e0..c838e1b33 100644 --- a/src/osmo-bsc/bts_init.c +++ b/src/osmo-bsc/bts_init.c @@ -73,10 +73,31 @@ static struct osmo_tdef bts_gprs_rlc_timer_templates[] = { {} }; +static struct osmo_tdef bts_gprs_ns_timer_templates[] = { + { .T = GSM_BTS_TDEF_ID_TNS_BLOCK, .default_val = 3, .min_val = 0, .max_val = UINT8_MAX, + .desc = "Tns-block: Guards the blocking and unblocking procedures" }, + { .T = GSM_BTS_TDEF_ID_TNS_BLOCK_RETRIES, .default_val = 3, .min_val = 0, .max_val = UINT8_MAX, + .desc = "NS-BLOCK-RETRIES: Blocking procedure retries", .unit = OSMO_TDEF_CUSTOM }, + { .T = GSM_BTS_TDEF_ID_TNS_RESET, .default_val = 3, .min_val = 0, .max_val = UINT8_MAX, + .desc = "Tns-reset: Guards the reset procedure" }, + { .T = GSM_BTS_TDEF_ID_TNS_RESET_RETRIES, .default_val = 3, .min_val = 0, .max_val = UINT8_MAX, + .desc = "Reset procedure retries", .unit = OSMO_TDEF_CUSTOM }, + { .T = GSM_BTS_TDEF_ID_TNS_TEST, .default_val = 30, .min_val = 0, .max_val = UINT8_MAX, + .desc = "Tns-test: Periodicity of the NS-VC test procedure" }, + { .T = GSM_BTS_TDEF_ID_TNS_ALIVE, .default_val = 3, .min_val = 0, .max_val = UINT8_MAX, + .desc = "Tns-alive: Guards the NS-VC test procedure" }, + { .T = GSM_BTS_TDEF_ID_TNS_ALIVE_RETRIES, .default_val = 10, .min_val = 0, .max_val = UINT8_MAX, + .desc = "NS-ALIVE-RETRIES: Retries for the the NS-VC test procedure", .unit = OSMO_TDEF_CUSTOM }, + {} +}; + + /* This is only used by bts_vty.c to init the default values for the templates */ struct osmo_tdef_group bts_gprs_timer_template_groups[_NUM_OSMO_BSC_BTS_TDEF_GROUPS + 1] = { [OSMO_BSC_BTS_TDEF_GROUPS_RLC] = { - .name = BTS_VTY_RLC_STR, .tdefs = bts_gprs_rlc_timer_templates, .desc = "RLC (Radio Link Control)" }, + .name = BTS_VTY_RLC_STR, .tdefs = bts_gprs_rlc_timer_templates, .desc = BTS_VTY_RLC_DESC_STR }, + [OSMO_BSC_BTS_TDEF_GROUPS_NS] = { + .name = BTS_VTY_NS_STR, .tdefs = bts_gprs_ns_timer_templates, .desc = BTS_VTY_NS_DESC_STR }, /* Additional per-BTS timer groups here, set as above using 'enum gprs_bts_tdef_groups' */ {} }; @@ -90,6 +111,9 @@ void bts_gprs_timer_groups_init(struct gsm_bts *bts) /* Init per-BTS RLC timers */ bts->timer_groups[OSMO_BSC_BTS_TDEF_GROUPS_RLC].tdefs = talloc_memdup(bts, bts_gprs_rlc_timer_templates, sizeof(bts_gprs_rlc_timer_templates)); OSMO_ASSERT(bts->timer_groups[OSMO_BSC_BTS_TDEF_GROUPS_RLC].tdefs); + /* Init per-BTS NS timers */ + bts->timer_groups[OSMO_BSC_BTS_TDEF_GROUPS_NS].tdefs = talloc_memdup(bts, bts_gprs_ns_timer_templates, sizeof(bts_gprs_ns_timer_templates)); + OSMO_ASSERT(bts->timer_groups[OSMO_BSC_BTS_TDEF_GROUPS_NS].tdefs); } /* Init default values for all per-BTS timer templates */ |