Change in osmo-pcu[master]: bts: Use ms_store when calculating set of target PDCHs for Pkt Paging...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Thu May 13 16:59:16 UTC 2021


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/24225 )


Change subject: bts: Use ms_store when calculating set of target PDCHs for Pkt Paging Request
......................................................................

bts: Use ms_store when calculating set of target PDCHs for Pkt Paging Request

The ul_tbfs/dl_tbfs lists will become per-trx. Since in this case we
want to operate on the BTS globally, let's iterate over MS objects
instead. This makes more sense too since here we really aim at reaching
a MS (subscriber) instead of specific TBFs. Later on the code can be
optimized easily to schedule a Pkt Paging Request for only 1 of the TBFs
of each MS instad of scheduling it for each TBFs in the MS.

Change-Id: I671e531921bbea2f5cc0f2bfcb8a39ea5c6673b8
---
M src/bts.cpp
1 file changed, 10 insertions(+), 11 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/25/24225/1

diff --git a/src/bts.cpp b/src/bts.cpp
index 7e2f11b..c84f5c4 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -342,17 +342,11 @@
 {
 	uint8_t l, trx, ts, any_tbf = 0;
 	struct gprs_rlcmac_tbf *tbf;
-	struct llist_item *pos;
+	struct llist_head *tmp;
 	const struct osmo_mobile_identity *mi;
 	uint8_t slot_mask[8];
 	int8_t first_ts; /* must be signed */
 
-	struct llist_head *tbfs_lists[] = {
-		&bts->ul_tbfs,
-		&bts->dl_tbfs,
-		NULL
-	};
-
 	/* First, build the MI used to page on PDCH from available subscriber info: */
 	if (req->mi_tmsi_present) {
 		mi = &req->mi_tmsi;
@@ -400,13 +394,18 @@
 
 	/* We don't know the target MS.
 	 * collect slots to page
-	 * Mark slots for every TBF, but only mark one of it.
+	 * Mark up to one slot attached to each of the TBF of the MS.
 	 * Mark only the first slot found.
 	 * Don't mark, if TBF uses a different slot that is already marked. */
 	memset(slot_mask, 0, sizeof(slot_mask));
-	for (l = 0; tbfs_lists[l]; l++) {
-		llist_for_each_entry(pos, tbfs_lists[l], list) {
-			tbf = (struct gprs_rlcmac_tbf *)pos->entry;
+
+	llist_for_each(tmp, bts_ms_store(bts)->ms_list()) {
+		ms = llist_entry(tmp, typeof(*ms), list);
+		struct gprs_rlcmac_tbf *tbfs[2] = { ms->ul_tbf, ms->dl_tbf };
+		for (l = 0; l < 2; l++) {
+			tbf = (struct gprs_rlcmac_tbf *)tbfs[l];
+			if (!tbf)
+				continue;
 			first_ts = -1;
 			for (ts = 0; ts < 8; ts++) {
 				if (tbf->pdch[ts]) {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/24225
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I671e531921bbea2f5cc0f2bfcb8a39ea5c6673b8
Gerrit-Change-Number: 24225
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210513/0b571e73/attachment.htm>


More information about the gerrit-log mailing list