From d0532b53ebcafc1e71ac6478b03ee9ebe4ac386d Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 13 Dec 2017 18:27:32 +0100 Subject: TBF-DL: move priority computation into function Improve readability by moving priority computation into separate function. Change-Id: Icdca0106a544036eaa94a25f0d4f84e4282f4568 --- src/tbf.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/tbf.h') 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, }; -- cgit v1.2.3