From 261c2b2e039366485027545b537eeedaa16c99fc Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Tue, 2 Feb 2021 11:44:47 +0000 Subject: [PATCH] Removed limit to the undelivered SDUs info queue in RLC AM. Printing a warning if the queue is getting large instead. --- lib/include/srslte/upper/rlc_am_lte.h | 2 +- lib/src/upper/rlc_am_lte.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/include/srslte/upper/rlc_am_lte.h b/lib/include/srslte/upper/rlc_am_lte.h index 101902f90..b471c4666 100644 --- a/lib/include/srslte/upper/rlc_am_lte.h +++ b/lib/include/srslte/upper/rlc_am_lte.h @@ -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 undelivered_sdu_info_queue; // Callback function for buffer status report diff --git a/lib/src/upper/rlc_am_lte.cc b/lib/src/upper/rlc_am_lte.cc index 1411b1d03..fad5207b0 100644 --- a/lib/src/upper/rlc_am_lte.cc +++ b/lib/src/upper/rlc_am_lte.cc @@ -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;