lib,pdcp_nr: log RLC mode in PDCP configuration

master
Pedro Alvarez 3 years ago
parent 9687af7660
commit 68b6facac8

@ -26,7 +26,6 @@
#include <map> #include <map>
namespace srsran { namespace srsran {
/**************************************************************************** /****************************************************************************
* NR PDCP Entity * NR PDCP Entity
* PDCP entity for 5G NR * PDCP entity for 5G NR
@ -104,6 +103,11 @@ private:
// COUNT overflow protection // COUNT overflow protection
bool tx_overflow = false; bool tx_overflow = false;
bool rx_overflow = false; bool rx_overflow = false;
enum class rlc_mode_t {
UM,
AM,
} rlc_mode;
}; };
/* /*

@ -56,6 +56,8 @@ bool pdcp_entity_nr::configure(const pdcp_config_t& cnfg_)
rb_name = cfg.get_rb_name(); rb_name = cfg.get_rb_name();
window_size = 1 << (cfg.sn_len - 1); window_size = 1 << (cfg.sn_len - 1);
rlc_mode = rlc->rb_is_um(lcid) ? rlc_mode_t::UM : rlc_mode_t::AM;
// Timers // Timers
reordering_timer = task_sched.get_unique_timer(); reordering_timer = task_sched.get_unique_timer();
@ -64,11 +66,12 @@ bool pdcp_entity_nr::configure(const pdcp_config_t& cnfg_)
reordering_timer.set(static_cast<uint32_t>(cfg.t_reordering), *reordering_fnc); reordering_timer.set(static_cast<uint32_t>(cfg.t_reordering), *reordering_fnc);
} }
active = true; active = true;
logger.info("%s PDCP-NR entity configured. SN_LEN=%d, Discard timer %d, Re-ordering timer %d, RAT=%s", logger.info("%s PDCP-NR entity configured. SN_LEN=%d, Discard timer %d, Re-ordering timer %d, RLC=%s, RAT=%s",
rb_name, rb_name,
cfg.sn_len, cfg.sn_len,
cfg.discard_timer, cfg.discard_timer,
cfg.t_reordering, cfg.t_reordering,
rlc_mode == rlc_mode_t::UM ? "UM" : "AM",
to_string(cfg.rat)); to_string(cfg.rat));
return true; return true;
} }

Loading…
Cancel
Save