aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-12-13 18:27:32 +0100
committerMax <msuraev@sysmocom.de>2018-01-12 15:29:41 +0100
commitd0532b53ebcafc1e71ac6478b03ee9ebe4ac386d (patch)
tree97cc0294a1209c70ec58f2cd5ae055a6c88396f9 /src/tbf.h
parentea98b7d7846ea196508401919ff0da2ff4a3e9a0 (diff)
TBF-DL: move priority computation into function
Improve readability by moving priority computation into separate function. Change-Id: Icdca0106a544036eaa94a25f0d4f84e4282f4568
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tbf.h b/src/tbf.h
index 21762d3b..059bc785 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -92,6 +92,15 @@ enum gprs_rlcmac_tbf_direction {
GPRS_RLCMAC_UL_TBF
};
+enum tbf_dl_prio {
+ DL_PRIO_NONE,
+ DL_PRIO_SENT_DATA, /* the data has been sent and not (yet) nacked */
+ DL_PRIO_LOW_AGE, /* the age has reached the first threshold */
+ DL_PRIO_NEW_DATA, /* the data has not been sent yet or nacked */
+ DL_PRIO_HIGH_AGE, /* the age has reached the second threshold */
+ DL_PRIO_CONTROL, /* a control block needs to be sent */
+};
+
enum tbf_counters {
TBF_CTR_RLC_NACKED,
};