aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-26 13:08:12 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-26 21:00:52 +0100
commit7a5f3c2153beb5f92b39a93b02ead76bcd0c6150 (patch)
tree434d90ff5e6e1cfb8702eb77d6943652d35ddf2b /src/tbf.h
parent7f3e662b3412a028254796420d7761d8c84c8fd2 (diff)
tbf/sched: We pick the _last_ entry, rotate the lists
We always pick the _last_ entry from the lists. Let's rotate so we make it a bit more fair.
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tbf.h b/src/tbf.h
index 4d7f64b2..98b9a9b9 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -135,6 +135,9 @@ struct gprs_rlcmac_tbf {
uint16_t sns() const;
+ /* attempt to make things a bit more fair */
+ void rotate_in_list();
+
struct llist_head list;
uint32_t state_flags;
enum gprs_rlcmac_tbf_direction direction;