aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.cpp
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.cpp
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.cpp')
-rw-r--r--src/tbf.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp
index 88d4662f..e882e1fb 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -1742,3 +1742,12 @@ bool gprs_rlcmac_tbf::dl_window_stalled() const
{
return dir.dl.window.window_stalled();
}
+
+void gprs_rlcmac_tbf::rotate_in_list()
+{
+ llist_del(&list);
+ if (direction == GPRS_RLCMAC_UL_TBF)
+ llist_add(&list, &bts->bts_data()->ul_tbfs);
+ else
+ llist_add(&list, &bts->bts_data()->dl_tbfs);
+}