From 068267992d9862bcb0c34e59561c4a767ddb0f82 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 8 Jul 2021 09:08:30 +0200 Subject: [PATCH] rnti_pool: add rrc_endc class and extra 1024B to UE memblock size this should fix #3045 however, this hard-coded size seems pretty unflexible anyway so we might have to increase/add to it, or find an alternative way to calculate the size? --- srsenb/src/common/rnti_pool.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srsenb/src/common/rnti_pool.cc b/srsenb/src/common/rnti_pool.cc index 6b2804876..44b8cff3a 100644 --- a/srsenb/src/common/rnti_pool.cc +++ b/srsenb/src/common/rnti_pool.cc @@ -13,6 +13,7 @@ #include "srsenb/hdr/common/rnti_pool.h" #include "srsenb/hdr/common/common_enb.h" #include "srsenb/hdr/stack/mac/ue.h" +#include "srsenb/hdr/stack/rrc/rrc_endc.h" #include "srsenb/hdr/stack/rrc/rrc_mobility.h" #include "srsenb/hdr/stack/rrc/rrc_ue.h" #include "srsran/adt/pool/circular_stack_pool.h" @@ -21,8 +22,8 @@ namespace srsenb { -const static size_t UE_MEM_BLOCK_SIZE = - sizeof(ue) + sizeof(rrc::ue) + sizeof(rrc::ue::rrc_mobility) + sizeof(srsran::rlc) + sizeof(srsran::pdcp); +const static size_t UE_MEM_BLOCK_SIZE = 1024 + sizeof(ue) + sizeof(rrc::ue) + sizeof(rrc::ue::rrc_mobility) + + sizeof(rrc::ue::rrc_endc) + sizeof(srsran::rlc) + sizeof(srsran::pdcp); srsran::circular_stack_pool* get_rnti_pool() {