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?
This commit is contained in:
Andre Puschmann 2021-07-08 09:08:30 +02:00
parent 654afac9c7
commit 068267992d
1 changed files with 3 additions and 2 deletions

View File

@ -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<SRSENB_MAX_UES>* get_rnti_pool()
{