pdcp: turn warning of PDCP duplicate into debug message

This commit is contained in:
Andre Puschmann 2020-03-25 18:30:57 +01:00 committed by Pedro Alvarez
parent 5e9aa38551
commit 175f7fd587
1 changed files with 6 additions and 6 deletions

View File

@ -265,12 +265,12 @@ void pdcp_entity_lte::handle_am_drb_pdu(srslte::unique_byte_buffer_t pdu)
uint32_t count = 0;
if ((0 <= sn_diff_last_submit && sn_diff_last_submit > (int32_t)reordering_window) ||
(0 <= last_submit_diff_sn && last_submit_diff_sn < (int32_t)reordering_window)) {
log->warning("|SN - last_submitted_sn| is larger than re-ordering window.\n");
if (sn > next_pdcp_rx_sn) {
count = (rx_hfn - 1) << cfg.sn_len | sn;
} else {
count = rx_hfn << cfg.sn_len | sn;
}
// discard
log->debug("Discarding SN=%d (sn_diff_last_submit=%d, last_submit_diff_sn=%d, reordering_window=%d)\n",
sn,
sn_diff_last_submit,
last_submit_diff_sn,
reordering_window);
return; // Discard
} else if ((int32_t)(next_pdcp_rx_sn - sn) > (int32_t)reordering_window) {
log->debug("(Next_PDCP_RX_SN - SN) is larger than re-ordering window.\n");