Move RLC buffer size to common

This commit is contained in:
Ismael Gomez 2018-07-06 09:08:29 +02:00
parent f40766a503
commit 85a7daa09d
2 changed files with 5 additions and 1 deletions

View File

@ -151,6 +151,10 @@ struct rlc_status_pdu_t{
class rlc_common
{
public:
// Size of the Uplink buffer in number of PDUs
const static int RLC_BUFFER_NOF_PDU = 128;
virtual ~rlc_common() {}
virtual void init(srslte::log *rlc_entity_log_,
uint32_t lcid_,

View File

@ -43,7 +43,7 @@ void rlc_entity::init(rlc_mode_t mode_,
{
if (buffer_size <= 0) {
buffer_size = 64;
buffer_size = rlc_common::RLC_BUFFER_NOF_PDU;
}
// Create the RLC instance the first time init() is called.
// If called to reestablished, the entity is stopped but not destroyed