Merge remote-tracking branch 'origin/txpdu_dd' into integration_2025_w29 (!3528)

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:
Robert Schmidt
2025-07-16 11:12:24 +02:00
@@ -1841,6 +1841,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;
}