diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2013-12-04 18:11:47 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-12-25 14:55:04 +0100 |
commit | 9c623892f5bb2bcc058a43c4d18aa2ce3bff2383 (patch) | |
tree | 7ae3832b24d8cb6181d72d65b7f3fd444057078c /src/llc.h | |
parent | a42b2ad5ed6b71457c87651e24b01ba6dfb92d22 (diff) |
llc: Calculate the average queuing delay of the LLC queues
Use a formula like it is used with TCP. This can help to make
decisions about if frames should be dropped or not at the time
we enqueue them.
This code will store two timeval structs in fron the of the
actual data and compute the average at the time of the dequeue.
Diffstat (limited to 'src/llc.h')
-rw-r--r-- | src/llc.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -55,6 +55,7 @@ struct gprs_llc { uint16_t m_length; /* len of current DL LLC_frame, 0 == no frame */ struct llist_head queue; /* queued LLC DL data */ + uint32_t m_avg_queue_delay; /* Average delay of data going through the queue */ size_t m_queue_size; }; |