fix(RLC): Count dropped DL SDUs by the RLC

When a downlink SDU was discarded by the RLC Acknowledged Mode entity due to a full transmit buffer (tx_maxsize), the drop statistics were not being updated.
The `txpdu_dd_pkts` and `txpdu_dd_bytes` counters remained at 0.
It should be noted that while the statistics are named `txpdu_dd_*`, the drop at this stage occurs at the SDU level.
This commit is contained in:
fatich
2025-07-15 15:32:00 +02:00
parent e82fde247a
commit 5c52f6dc23
@@ -1811,6 +1811,8 @@ void nr_rlc_entity_am_recv_sdu(nr_rlc_entity_t *_entity,
if (entity->tx_size + size > entity->tx_maxsize) {
entity->sdu_rejected++;
entity->common.stats.txpdu_dd_pkts++;
entity->common.stats.txpdu_dd_bytes += size;
return;
}