fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/30242 )
Change subject: trxcon: rx_sch_fn(): do not use sched->fn_counter_proc
......................................................................
trxcon: rx_sch_fn(): do not use sched->fn_counter_proc
Use the given Fn instead, no need to go that deep for it. The
sched->fn_counter_proc is an internal field of the scheduler,
which is not necessarily holding a valid value when pulling
Uplink bursts synchronously via the Ready-to-Send PHYIF API.
Change-Id: I56027876b50e53b474c2f54ac216cd141142020e
Related: OS#5599
---
M src/host/trxcon/src/sched_lchan_sch.c
1 file changed, 4 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/42/30242/1
diff --git a/src/host/trxcon/src/sched_lchan_sch.c b/src/host/trxcon/src/sched_lchan_sch.c
index c61e134..d943ae8 100644
--- a/src/host/trxcon/src/sched_lchan_sch.c
+++ b/src/host/trxcon/src/sched_lchan_sch.c
@@ -85,13 +85,14 @@
/* Decode BSIC and TDMA frame number */
decode_sb(&time, &bsic, sb_info);
- LOGP_LCHAND(lchan, LOGL_DEBUG, "Received SCH: bsic=%u, fn=%u, sched_fn=%u\n",
- bsic, time.fn, lchan->ts->sched->fn_counter_proc);
+ LOGP_LCHAND(lchan, LOGL_DEBUG,
+ "Received SCH: bsic=%u, fn=%u, sched_fn=%u\n",
+ bsic, time.fn, fn);
/* Check if decoded frame number matches */
if (time.fn != fn) {
LOGP_LCHAND(lchan, LOGL_ERROR,
- "Decoded fn=%u does not match fn=%u provided by scheduler\n",
+ "Decoded fn=%u does not match sched_fn=%u\n",
time.fn, fn);
return -EINVAL;
}
--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/30242
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I56027876b50e53b474c2f54ac216cd141142020e
Gerrit-Change-Number: 30242
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/30240 )
Change subject: trxcon: adjust coding style in l1sched_trigger()
......................................................................
trxcon: adjust coding style in l1sched_trigger()
Change-Id: I96a40fdbea5085999b9aeb98b418ae27132f6fda
Related: OS#5599
---
M src/host/trxcon/src/sched_trx.c
1 file changed, 14 insertions(+), 33 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/40/30240/1
diff --git a/src/host/trxcon/src/sched_trx.c b/src/host/trxcon/src/sched_trx.c
index abab0db..fb9cdc4 100644
--- a/src/host/trxcon/src/sched_trx.c
+++ b/src/host/trxcon/src/sched_trx.c
@@ -93,19 +93,15 @@
struct l1sched_lchan_state *lchan;
l1sched_lchan_tx_func *handler;
enum l1sched_lchan_type chan;
- uint8_t offset;
+ unsigned int offset;
- /* Timeslot is not allocated */
- if (ts == NULL)
- return;
-
- /* Timeslot is not configured */
- if (ts->mf_layout == NULL)
+ /* Check if the given timeslot is configured */
+ if (ts == NULL || ts->mf_layout == NULL)
return;
/* Get frame from multiframe */
offset = br->fn % ts->mf_layout->period;
- frame = ts->mf_layout->frames + offset;
+ frame = &ts->mf_layout->frames[offset];
/* Get required info from frame */
br->bid = frame->ul_bid;
@@ -113,41 +109,26 @@
handler = l1sched_lchan_desc[chan].tx_fn;
/* Omit lchans without handler */
- if (!handler)
+ if (handler == NULL)
return;
- /* Make sure that lchan was allocated and activated */
+ /* Make sure that lchan is allocated and active */
lchan = l1sched_find_lchan(ts, chan);
- if (lchan == NULL)
+ if (lchan == NULL || !lchan->active)
return;
- /* Omit inactive lchans */
- if (!lchan->active)
- return;
-
- /**
- * If we aren't processing any primitive yet,
- * attempt to obtain a new one from queue
- */
+ /* If no primitive is being processed, try obtaining one from Tx queue */
if (lchan->prim == NULL)
lchan->prim = l1sched_prim_dequeue(&ts->tx_prims, br->fn, lchan);
-
- /* TODO: report TX buffers health to the higher layers */
-
- /* If CBTX (Continuous Burst Transmission) is assumed */
- if (l1sched_lchan_desc[chan].flags & L1SCHED_CH_FLAG_CBTX) {
- /**
- * Probably, a TX buffer is empty. Nevertheless,
- * we shall continuously transmit anything on
- * CBTX channels.
- */
- if (lchan->prim == NULL)
+ if (lchan->prim == NULL) {
+ /* If CBTX (Continuous Burst Transmission) is required */
+ if (l1sched_lchan_desc[chan].flags & L1SCHED_CH_FLAG_CBTX)
l1sched_prim_dummy(lchan);
+ if (lchan->prim == NULL)
+ return;
}
- /* If there is no primitive, do nothing */
- if (lchan->prim == NULL)
- return;
+ /* TODO: report TX buffers health to the higher layers */
/* Handover RACH needs to be handled regardless of the
* current channel type and the associated handler. */
--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/30240
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I96a40fdbea5085999b9aeb98b418ae27132f6fda
Gerrit-Change-Number: 30240
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange
Attention is currently required from: pespin.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-mgw/+/30212 )
Change subject: osmux: Use new osmux_xfrm_input API to set name on each link
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/30212
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: Id5b7d497be4b3405403d30e40e1a52f13101cf5f
Gerrit-Change-Number: 30212
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 19 Nov 2022 09:22:18 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: pespin.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/30213 )
Change subject: osmux: Use new osmux_xfrm_input API to set name on each link
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/30213
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Iaea980a2e11282add12f9af585500d90f0462279
Gerrit-Change-Number: 30213
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 19 Nov 2022 09:22:06 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment