Commit c0394bc0 authored by Chieh-Chun Chen's avatar Chieh-Chun Chen

Add avg time to tx an sdu for RLC UM & TM mode

parent fad3f231
...@@ -154,6 +154,8 @@ void nr_rlc_entity_tm_recv_sdu(nr_rlc_entity_t *_entity, ...@@ -154,6 +154,8 @@ void nr_rlc_entity_tm_recv_sdu(nr_rlc_entity_t *_entity,
/* update buffer status */ /* update buffer status */
entity->common.bstatus.tx_size += sdu->size; entity->common.bstatus.tx_size += sdu->size;
sdu->sdu->time_of_arrival = time_average_now();
} }
/*************************************************************************/ /*************************************************************************/
......
...@@ -594,6 +594,8 @@ void nr_rlc_entity_um_recv_sdu(nr_rlc_entity_t *_entity, ...@@ -594,6 +594,8 @@ void nr_rlc_entity_um_recv_sdu(nr_rlc_entity_t *_entity,
/* update buffer status */ /* update buffer status */
entity->common.bstatus.tx_size += compute_pdu_header_size(entity, sdu) entity->common.bstatus.tx_size += compute_pdu_header_size(entity, sdu)
+ sdu->size; + sdu->size;
sdu->sdu->time_of_arrival = time_average_now();
} }
/*************************************************************************/ /*************************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment