From 2ed8dceddf27aee2bc82e78a245f7e4b8d2b8648 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Mon, 15 Feb 2021 16:13:53 +0000 Subject: [PATCH] Use TX_COUNT in RLC AM stress test. Avoids issue with re-using SNs within the test --- lib/test/upper/rlc_stress_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/test/upper/rlc_stress_test.cc b/lib/test/upper/rlc_stress_test.cc index c7cc8d2df..2e6072a38 100644 --- a/lib/test/upper/rlc_stress_test.cc +++ b/lib/test/upper/rlc_stress_test.cc @@ -362,7 +362,7 @@ public: private: void run_thread() { - uint16_t pdcp_sn = 0; + uint32_t pdcp_sn = 0; byte_buffer_pool* pool = byte_buffer_pool::get_instance(); while (run_enable) { unique_byte_buffer_t pdu = srslte::make_byte_buffer(); @@ -372,7 +372,7 @@ private: usleep(1000); continue; } - pdu->md.pdcp_sn = pdcp_sn & 0x0FFF; // 12-bit SN + pdu->md.pdcp_sn = pdcp_sn; for (uint32_t i = 0; i < args.sdu_size; i++) { pdu->msg[i] = pdcp_sn & 0xFF; }