lib,rlc_am_nr: make max tx queue size configurable.

master
Pedro Alvarez 3 years ago
parent 4182a9f164
commit 72ba7503e5

@ -23,6 +23,7 @@
namespace srsran { namespace srsran {
const static uint32_t max_tx_queue_size = 128;
/**************************************************************************** /****************************************************************************
* RLC AM NR entity * RLC AM NR entity
***************************************************************************/ ***************************************************************************/
@ -41,14 +42,12 @@ bool rlc_am_nr_tx::configure(const rlc_config_t& cfg_)
return false; return false;
} }
/* if (cfg_.tx_queue_length > max_tx_queue_size) {
if (cfg_.tx_queue_length > MAX_SDUS_PER_RLC_PDU) { logger->error("Configuring Tx queue length of %d PDUs too big. Maximum value is %d.",
logger.error("Configuring Tx queue length of %d PDUs too big. Maximum value is %d.",
cfg_.tx_queue_length, cfg_.tx_queue_length,
MAX_SDUS_PER_RLC_PDU); max_tx_queue_size);
return false; return false;
} }
*/
mod_nr = (cfg.tx_sn_field_length == rlc_am_nr_sn_size_t::size12bits) ? 4096 : 262144; mod_nr = (cfg.tx_sn_field_length == rlc_am_nr_sn_size_t::size12bits) ? 4096 : 262144;
@ -73,7 +72,7 @@ uint32_t rlc_am_nr_tx::read_pdu(uint8_t* payload, uint32_t nof_bytes)
logger->debug("RLC entity not active. Not generating PDU."); logger->debug("RLC entity not active. Not generating PDU.");
return 0; return 0;
} }
// logger.debug("tx_window size - %zu PDUs", tx_window.size()); logger->debug("tx_window size - %zu PDUs", tx_window.size());
// Tx STATUS if requested // Tx STATUS if requested
if (do_status()) { if (do_status()) {

Loading…
Cancel
Save