From 28887a43841df415329c8e597cce861f85b83b5a Mon Sep 17 00:00:00 2001 From: faluco Date: Fri, 22 Oct 2021 14:23:26 +0200 Subject: [PATCH] Relax memory ordering for atomic load for the ul_harq::current_tx_nb member. --- srsue/src/stack/mac/ul_harq.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srsue/src/stack/mac/ul_harq.cc b/srsue/src/stack/mac/ul_harq.cc index 47c53f452..e2bcbeb0f 100644 --- a/srsue/src/stack/mac/ul_harq.cc +++ b/srsue/src/stack/mac/ul_harq.cc @@ -317,7 +317,7 @@ void ul_harq_entity::ul_harq_process::generate_retx(mac_interface_phy_lte::mac_g Info("UL %d: Adaptive retx=%d, RV=%d, TBS=%d, HI=%s, ndi=%d, prev_ndi=%d", pid, - current_tx_nb.load(), + current_tx_nb.load(std::memory_order_relaxed), get_rv(), grant.tb.tbs, harq_feedback ? "ACK" : "NACK", @@ -337,7 +337,7 @@ void ul_harq_entity::ul_harq_process::generate_retx(mac_interface_phy_lte::mac_g // Non-adaptive retx are only sent if HI=NACK. If HI=ACK but no dci was received do not reset PID Info("UL %d: Non-Adaptive retx=%d, RV=%d, TBS=%d, HI=%s", pid, - current_tx_nb.load(), + current_tx_nb.load(std::memory_order_relaxed), get_rv(), cur_grant.get_tbs(), harq_feedback ? "ACK" : "NACK");