fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmo-gprs/+/32415 )


Change subject: [WIP] rlcmac: pdch_data_req: support USF based scheduling
......................................................................

[WIP] rlcmac: pdch_data_req: support USF based scheduling

Change-Id: I2cdda5787c041c98e8919984653760ec2a97dbb5
Related: OS#5500
---
M include/osmocom/gprs/rlcmac/rlcmac_prim.h
M src/rlcmac/sched.c
2 files changed, 18 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-gprs refs/changes/15/32415/1

diff --git a/include/osmocom/gprs/rlcmac/rlcmac_prim.h 
b/include/osmocom/gprs/rlcmac/rlcmac_prim.h
index 9c0bb3c..46495bf 100644
--- a/include/osmocom/gprs/rlcmac/rlcmac_prim.h
+++ b/include/osmocom/gprs/rlcmac/rlcmac_prim.h
@@ -130,8 +130,9 @@
                } ccch_data_ind;
                /* OSMO_GPRS_RLCMAC_L1CTL_PDCH_DATA | Req */
                struct {
-                       uint32_t fn;
+                       uint32_t fn; /* set to 0xffffffff for USF based 
scheduling */
                        uint8_t ts_nr;
+                       uint8_t ul_tbf_nr; /* valid for USF based scheduling, 
otherwise ignored */
                        uint8_t data_len;
                        uint8_t *data;
                } pdch_data_req;
diff --git a/src/rlcmac/sched.c b/src/rlcmac/sched.c
index 25ee6da..b6ce3f7 100644
--- a/src/rlcmac/sched.c
+++ b/src/rlcmac/sched.c
@@ -303,6 +303,12 @@
 tx_msg:
        rlcmac_prim_tx = gprs_rlcmac_prim_alloc_l1ctl_pdch_data_req(bi->ts, 
bi->fn, msgb_data(msg), 0);
        rlcmac_prim_tx->l1ctl.pdch_data_req.data_len = msgb_length(msg);
+#if 0
+       if (/* USF based scheduling */) {
+               rlcmac_prim_tx->l1ctl.pdch_data_req.fn = 0xffffffff;
+               rlcmac_prim_tx->l1ctl.pdch_data_req.ul_tbf_nr = /* TBF */;
+       }
+#endif
        rc = gprs_rlcmac_prim_call_down_cb(rlcmac_prim_tx);
        msgb_free(msg);


--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/32415
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I2cdda5787c041c98e8919984653760ec2a97dbb5
Gerrit-Change-Number: 32415
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanits...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to