aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-03-17 11:47:47 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-17 12:24:29 +0100
commit7c4a22dbc48f51eb199766bf1b29e061bf765cbd (patch)
treec027a1040858eed93d355da9f1e7371d54ef5d7e /tests
parent5cef5056ff70da6a06b1225cb744ad09e2c1b277 (diff)
cosmetic: Move agch_queue to sub-structure of gsm_bts_role_bts
Rathert han have 11 direct members of gsm_bts_role_bts, group them into a sub-struct as ew do for other parts like interference, laod, ... Change-Id: Iefecf4b70c1b11c650913f2ae3783718ffb8a36c
Diffstat (limited to 'tests')
-rw-r--r--tests/agch/agch_test.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/agch/agch_test.c b/tests/agch/agch_test.c
index b5094afb..89f113ab 100644
--- a/tests/agch/agch_test.c
+++ b/tests/agch/agch_test.c
@@ -116,11 +116,11 @@ static void test_agch_queue(void)
g_time.t3 = 6;
printf("Testing AGCH messages queue handling.\n");
- btsb->agch_max_queue_length = 32;
+ btsb->agch_queue.max_length = 32;
- btsb->agch_queue_low_level = 30;
- btsb->agch_queue_high_level = 30;
- btsb->agch_queue_thresh_level = 60;
+ btsb->agch_queue.low_level = 30;
+ btsb->agch_queue.high_level = 30;
+ btsb->agch_queue.thresh_level = 60;
for (round = 1; round <= num_rounds; round++) {
for (idx = 0; idx < num_ima_per_round; idx++) {
@@ -143,10 +143,10 @@ static void test_agch_queue(void)
"dropped %"PRIu64", merged %"PRIu64", rejected %"PRIu64", "
"ag-res %"PRIu64", non-res %"PRIu64"\n",
count, imm_ass_count, imm_ass_rej_count, imm_ass_rej_ref_count,
- btsb->agch_max_queue_length, btsb->agch_queue_length,
- btsb->agch_queue_dropped_msgs, btsb->agch_queue_merged_msgs,
- btsb->agch_queue_rejected_msgs, btsb->agch_queue_agch_msgs,
- btsb->agch_queue_pch_msgs);
+ btsb->agch_queue.max_length, btsb->agch_queue.length,
+ btsb->agch_queue.dropped_msgs, btsb->agch_queue.merged_msgs,
+ btsb->agch_queue.rejected_msgs, btsb->agch_queue.agch_msgs,
+ btsb->agch_queue.pch_msgs);
imm_ass_count = 0;
imm_ass_rej_count = 0;
@@ -182,10 +182,10 @@ static void test_agch_queue(void)
"dropped %"PRIu64", merged %"PRIu64", rejected %"PRIu64", "
"ag-res %"PRIu64", non-res %"PRIu64"\n",
multiframes, imm_ass_count, imm_ass_rej_count, imm_ass_rej_ref_count,
- btsb->agch_max_queue_length, btsb->agch_queue_length,
- btsb->agch_queue_dropped_msgs, btsb->agch_queue_merged_msgs,
- btsb->agch_queue_rejected_msgs, btsb->agch_queue_agch_msgs,
- btsb->agch_queue_pch_msgs);
+ btsb->agch_queue.max_length, btsb->agch_queue.length,
+ btsb->agch_queue.dropped_msgs, btsb->agch_queue.merged_msgs,
+ btsb->agch_queue.rejected_msgs, btsb->agch_queue.agch_msgs,
+ btsb->agch_queue.pch_msgs);
}
static void test_agch_queue_length_computation(void)