rlc_am: add log message when received NACK SN is already on retx queue

This commit is contained in:
Andre Puschmann 2021-04-07 20:37:42 +02:00
parent d02cc51e33
commit c74661ae95
1 changed files with 3 additions and 1 deletions

View File

@ -1140,7 +1140,7 @@ void rlc_am_lte::rlc_am_lte_tx::handle_control_pdu(uint8_t* payload, uint32_t no
update_vt_a = false;
if (tx_window.has_sn(i)) {
auto& pdu = tx_window[i];
if (!retx_queue.has_sn(i)) {
if (not retx_queue.has_sn(i)) {
rlc_amd_retx_t& retx = retx_queue.push();
srsran_expect(tx_window[i].rlc_sn == i, "Incorrect RLC SN=%d!=%d being accessed", tx_window[i].rlc_sn, i);
retx.sn = i;
@ -1176,6 +1176,8 @@ void rlc_am_lte::rlc_am_lte_tx::handle_control_pdu(uint8_t* payload, uint32_t no
pdu.buf->N_bytes);
}
}
} else {
logger.info("%s NACKed SN=%d already considered for retransmission", RB_NAME, i);
}
} else {
logger.warning("%s NACKed SN=%d already removed from Tx window", RB_NAME, i);