Removed limit to the undelivered SDUs info queue in RLC AM. Printing a warning if the queue is getting large instead.

master
Pedro Alvarez 4 years ago
parent d0ef6ce00b
commit 261c2b2e03

@ -187,7 +187,7 @@ private:
srslte::timer_handler::unique_timer status_prohibit_timer;
// SDU info for PDCP notifications
uint32_t pdcp_info_queue_capacity = 128;
uint32_t pdcp_info_queue_capacity = 512;
std::map<uint32_t, pdcp_sdu_info_t> undelivered_sdu_info_queue;
// Callback function for buffer status report

@ -386,8 +386,8 @@ int rlc_am_lte::rlc_am_lte_tx::write_sdu(unique_byte_buffer_t sdu)
}
if (undelivered_sdu_info_queue.size() >= pdcp_info_queue_capacity) {
log->error("PDCP SDU info exceeds maximum queue capacity\n");
return SRSLTE_ERROR;
log->warning("Undelivered PDCP SDU info queue is growing large. Queue size: %ld\n",
undelivered_sdu_info_queue.size());
}
undelivered_sdu_info_queue[info.sn] = info;

Loading…
Cancel
Save