Max has submitted this change and it was merged.

Change subject: TS alloc: properly count UL slots
......................................................................


TS alloc: properly count UL slots

Add cycle to mark multiple allocated UL slots similar to the way we
count DL slots in AllocTest. Until multislot UL allocation is
implemented it does not affect test output.

Change-Id: I2705405119421da3066c6c6bdd5830df4c133a36
Related: OS#2282
---
M tests/alloc/AllocTest.cpp
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp
index e26c432..a88f477 100644
--- a/tests/alloc/AllocTest.cpp
+++ b/tests/alloc/AllocTest.cpp
@@ -602,6 +602,10 @@
                        if (dl_tbf->pdch[i])
                                dl_slots |= 1 << i;
 
+               for (i = 0; ul_tbf && i < ARRAY_SIZE(ul_tbf->pdch); i += 1)
+                       if (ul_tbf->pdch[i])
+                               ul_slots |= 1 << i;
+
                for (i = 0; trx && i < ARRAY_SIZE(trx->pdch); i += 1) {
                        struct gprs_rlcmac_pdch *pdch = &trx->pdch[i];
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2705405119421da3066c6c6bdd5830df4c133a36
Gerrit-PatchSet: 2
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Owner: Max <msur...@sysmocom.de>
Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org>
Gerrit-Reviewer: Holger Freyther <hol...@freyther.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msur...@sysmocom.de>

Reply via email to