|
|
|
@ -20,12 +20,7 @@ rlc_um_base::rlc_um_base(srslte::log_ref log_,
|
|
|
|
|
srsue::pdcp_interface_rlc* pdcp_,
|
|
|
|
|
srsue::rrc_interface_rlc* rrc_,
|
|
|
|
|
srslte::timer_handler* timers_) :
|
|
|
|
|
log(log_),
|
|
|
|
|
lcid(lcid_),
|
|
|
|
|
pdcp(pdcp_),
|
|
|
|
|
rrc(rrc_),
|
|
|
|
|
timers(timers_),
|
|
|
|
|
pool(byte_buffer_pool::get_instance())
|
|
|
|
|
log(log_), lcid(lcid_), pdcp(pdcp_), rrc(rrc_), timers(timers_), pool(byte_buffer_pool::get_instance())
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
rlc_um_base::~rlc_um_base() {}
|
|
|
|
@ -202,7 +197,9 @@ rlc_um_base::rlc_um_base_rx::~rlc_um_base_rx() {}
|
|
|
|
|
* Tx subclass implementation (base)
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
|
|
rlc_um_base::rlc_um_base_tx::rlc_um_base_tx(rlc_um_base* parent_) : log(parent_->log), pool(parent_->pool) {}
|
|
|
|
|
rlc_um_base::rlc_um_base_tx::rlc_um_base_tx(rlc_um_base* parent_) :
|
|
|
|
|
log(parent_->log), pool(parent_->pool), parent(parent_)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
rlc_um_base::rlc_um_base_tx::~rlc_um_base_tx() {}
|
|
|
|
|
|
|
|
|
@ -303,7 +300,11 @@ int rlc_um_base::rlc_um_base_tx::build_data_pdu(uint8_t* payload, uint32_t nof_b
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return build_data_pdu(std::move(pdu), payload, nof_bytes);
|
|
|
|
|
int len = build_data_pdu(std::move(pdu), payload, nof_bytes);
|
|
|
|
|
if (len > 0) {
|
|
|
|
|
parent->metrics.sdu_tx_latency_us = mean_pdu_latency_us.value();
|
|
|
|
|
}
|
|
|
|
|
return len;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace srslte
|
|
|
|
|