gnb,mac_nr: push DL buffer state to scheduler

This commit is contained in:
Andre Puschmann 2021-09-23 16:48:38 +02:00
parent 426e876047
commit 7f897d83e2
2 changed files with 7 additions and 2 deletions

View File

@ -57,8 +57,7 @@ public:
int remove_ue(uint16_t rnti) override;
// MAC interface for RLC
// TODO:
int rlc_buffer_state(uint16_t rnti, uint32_t lc_id, uint32_t tx_queue, uint32_t retx_queue) override { return 0; }
int rlc_buffer_state(uint16_t rnti, uint32_t lcid, uint32_t tx_queue, uint32_t retx_queue) override;
// Interface for PHY
void process_pdus();

View File

@ -131,6 +131,12 @@ int mac_nr::ue_cfg(uint16_t rnti, const sched_nr_interface::ue_cfg_t& ue_cfg)
return SRSRAN_SUCCESS;
}
int mac_nr::rlc_buffer_state(uint16_t rnti, uint32_t lcid, uint32_t tx_queue, uint32_t retx_queue)
{
sched.dl_buffer_state(rnti, lcid, tx_queue, retx_queue);
return SRSRAN_SUCCESS;
}
uint16_t mac_nr::reserve_rnti(uint32_t enb_cc_idx)
{
uint16_t rnti = alloc_ue(enb_cc_idx);