lib,rlc: add stress test support for NR AM18

master
Robert Falkenberg 3 years ago
parent 1507eed79c
commit e5e5266eea

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

@ -92,7 +92,7 @@ void parse_args(stress_test_args_t* args, int argc, char* argv[])
bpo::options_description common("Configuration options");
common.add_options()
("rat", bpo::value<std::string>(&args->rat)->default_value("LTE"), "The RLC version to use (LTE/NR)")
("mode", bpo::value<std::string>(&args->mode)->default_value("AM"), "Whether to test RLC acknowledged or unacknowledged mode (AM/UM for LTE) (UM6/UM12 for NR)")
("mode", bpo::value<std::string>(&args->mode)->default_value("AM"), "Whether to test RLC acknowledged or unacknowledged mode (AM/UM for LTE) (UM6/UM12/AM12/AM18 for NR)")
("duration", bpo::value<uint32_t>(&args->test_duration_sec)->default_value(5), "Duration (sec)")
("sdu_size", bpo::value<int32_t>(&args->sdu_size)->default_value(-1), "Size of SDUs (-1 means random)")
("random_opp", bpo::value<bool>(&args->random_opp)->default_value(true), "Whether to generate random MAC opportunities")

Loading…
Cancel
Save