lib,rlc_am_nr: make max retx configurable in AM stress test

master
Pedro Alvarez 3 years ago
parent 4e2f7cf029
commit 2f1cf8ee11

@ -846,7 +846,7 @@ void rlc_am_nr_tx::handle_control_pdu(uint8_t* payload, uint32_t nof_bytes)
// NACK'ing full SDU. // NACK'ing full SDU.
// add to retx queue if it's not already there // add to retx queue if it's not already there
if (not retx_queue->has_sn(nack_sn)) { if (not retx_queue->has_sn(nack_sn)) {
// Have we segmented the SDU alreaty? // Have we segmented the SDU already?
if ((*tx_window)[nack_sn].segment_list.empty()) { if ((*tx_window)[nack_sn].segment_list.empty()) {
rlc_amd_retx_nr_t& retx = retx_queue->push(); rlc_amd_retx_nr_t& retx = retx_queue->push();
retx.sn = nack_sn; retx.sn = nack_sn;

@ -276,9 +276,11 @@ void stress_test(stress_test_args_t args)
} else if (args.mode == "UM12") { } else if (args.mode == "UM12") {
cnfg_ = srsran::rlc_config_t::default_rlc_um_nr_config(12); cnfg_ = srsran::rlc_config_t::default_rlc_um_nr_config(12);
} else if (args.mode == "AM12") { } else if (args.mode == "AM12") {
cnfg_ = srsran::rlc_config_t::default_rlc_am_nr_config(12); cnfg_ = srsran::rlc_config_t::default_rlc_am_nr_config(12);
cnfg_.am_nr.max_retx_thresh = args.max_retx;
} else if (args.mode == "AM18") { } else if (args.mode == "AM18") {
cnfg_ = srsran::rlc_config_t::default_rlc_am_nr_config(18); cnfg_ = srsran::rlc_config_t::default_rlc_am_nr_config(18);
cnfg_.am_nr.max_retx_thresh = args.max_retx;
} else { } else {
std::cout << "Unsupported RLC mode " << args.mode << ", exiting." << std::endl; std::cout << "Unsupported RLC mode " << args.mode << ", exiting." << std::endl;
exit(-1); exit(-1);

Loading…
Cancel
Save