lib,rlc_am_nr: made mod_nr configurable

master
Pedro Alvarez 3 years ago
parent 665aea599c
commit bca9ef2454

@ -25,8 +25,6 @@
#include <pthread.h>
#include <queue>
const uint32_t mod_nr = 4096;
namespace srsran {
/******************************
@ -106,6 +104,7 @@ private:
rlc_am* parent = nullptr;
rlc_am_nr_rx* rx = nullptr;
uint32_t mod_nr = 4096;
inline int32_t tx_mod_base_nr(uint32_t sn) { return ((int32_t)sn - (int32_t)st.tx_next_ack) % mod_nr; }
/****************************************************************************
@ -170,6 +169,7 @@ private:
rlc_am_nr_tx* tx = nullptr;
byte_buffer_pool* pool = nullptr;
uint32_t mod_nr = 4096;
inline int32_t rx_mod_base_nr(uint32_t sn) { return ((int32_t)sn - (int32_t)rx_next) % mod_nr; }
// RX Window

@ -49,6 +49,9 @@ bool rlc_am_nr_tx::configure(const rlc_config_t& cfg_)
return false;
}
*/
mod_nr = (cfg.tx_sn_field_length == rlc_am_nr_sn_size_t::size12bits) ? 4096 : 262144;
tx_enabled = true;
return true;
@ -426,6 +429,7 @@ bool rlc_am_nr_rx::configure(const rlc_config_t& cfg_)
logger->info("Configured reassembly timer. t-Reassembly=%d ms", cfg.t_reassembly);
}
mod_nr = (cfg.rx_sn_field_length == rlc_am_nr_sn_size_t::size12bits) ? 4096 : 262144;
return true;
}

Loading…
Cancel
Save