mirror of https://github.com/PentHertz/srsLTE.git
Removed limit to the undelivered SDUs info queue in RLC AM. Printing a warning if the queue is getting large instead.
This commit is contained in:
parent
d0ef6ce00b
commit
261c2b2e03
|
@ -187,7 +187,7 @@ private:
|
||||||
srslte::timer_handler::unique_timer status_prohibit_timer;
|
srslte::timer_handler::unique_timer status_prohibit_timer;
|
||||||
|
|
||||||
// SDU info for PDCP notifications
|
// 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;
|
std::map<uint32_t, pdcp_sdu_info_t> undelivered_sdu_info_queue;
|
||||||
|
|
||||||
// Callback function for buffer status report
|
// 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) {
|
if (undelivered_sdu_info_queue.size() >= pdcp_info_queue_capacity) {
|
||||||
log->error("PDCP SDU info exceeds maximum queue capacity\n");
|
log->warning("Undelivered PDCP SDU info queue is growing large. Queue size: %ld\n",
|
||||||
return SRSLTE_ERROR;
|
undelivered_sdu_info_queue.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
undelivered_sdu_info_queue[info.sn] = info;
|
undelivered_sdu_info_queue[info.sn] = info;
|
||||||
|
|
Loading…
Reference in New Issue