change enb ue softbuffer initial allocation size

master
Francisco 4 years ago committed by Francisco Paisana
parent f1c67f5b2b
commit ac7cc3c42d

@ -83,12 +83,8 @@ bool mac::init(const mac_args_t& args_,
new (ptr) ue_cc_softbuffers(nof_prb, SRSRAN_FDD_NOF_HARQ, SRSRAN_FDD_NOF_HARQ); new (ptr) ue_cc_softbuffers(nof_prb, SRSRAN_FDD_NOF_HARQ, SRSRAN_FDD_NOF_HARQ);
}; };
auto recycle_softbuffers = [](ue_cc_softbuffers& softbuffers) { softbuffers.clear(); }; auto recycle_softbuffers = [](ue_cc_softbuffers& softbuffers) { softbuffers.clear(); };
softbuffer_pool.reset( softbuffer_pool.reset(new srsran::background_obj_pool<ue_cc_softbuffers>(
new srsran::background_obj_pool<ue_cc_softbuffers>(16, 8, 8, args.max_nof_ues, init_softbuffers, recycle_softbuffers));
4,
std::min(args.max_nof_ues, 16U), // initial allocation size
init_softbuffers,
recycle_softbuffers));
// Pre-alloc UE objects for first attaching users // Pre-alloc UE objects for first attaching users
prealloc_ue(10); prealloc_ue(10);

Loading…
Cancel
Save