It is at MAC layer if you have user plane enabled.
Check if SN 3547 (for example) was retransmitted 4 times.
So at RLC there are 32 retransmissiosn while at MAC level there are 4 retransmissions for HARQ process.
It depends on parameters but should be like this.
Take a look at RLC-level packets on QXDM/QCAT and you will be able to find the ones where you have the indications to understand if the packet was retx’ed.
For instance, you have control PDUs pointing what SNs were ACK’ed.
The root cause for this behavior has been found.
RRC was configuring ANR-DRX for the UE while data transaction was going on. Due to this MAC Scheduler was not scheduling the UE in DL even though DL BO was reported by RLC to MAC (for STATUS PDU) in eNB. Due to this eNB was not transmitting the STATUS PDU to UE and hence RLF was reached in UE due to RLC MAX RETX.
Whether to schedule the UE in DL after DRX configuration from RRC, after having received SR Indication from UE and scheduling the UE in UL, is a design preference in eNB as Specification does not mention anything about it. In this case, eNB chose not to schedule the UE in DL even though it was being scheduled in UL when SR was received from UE.
Thanks all for your input and suggestions.