aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.cpp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-24 00:01:50 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-11-24 00:01:50 +0100
commitef93bdb19b8ff93ef1ed6e858029df44da82982e (patch)
treee214b1711d3c5293943609704087567b6fddff0e /src/tbf.cpp
parent64b49bc3cea46207cbfd651ff9cc21c9122525bf (diff)
tbf: Count how often we re-start a BSN in the send routine
There appears to be a scheduling issue. Even without any NACKs we are re-transmitting a lot of frames. It might be because of this.
Diffstat (limited to 'src/tbf.cpp')
-rw-r--r--src/tbf.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp
index b76a5ecd..54eb3cb6 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -911,11 +911,12 @@ do_resend:
|| ((dir.dl.v_s - dir.dl.v_a) & mod_sns) == m_ws) {
int resend = 0;
- if (state_is(GPRS_RLCMAC_FINISHED))
+ if (state_is(GPRS_RLCMAC_FINISHED)) {
LOGP(DRLCMACDL, LOGL_DEBUG, "- Restarting at BSN %d, "
"because all blocks have been transmitted.\n",
dir.dl.v_a);
- else {
+ bts->rlc_restarted();
+ } else {
LOGP(DRLCMACDL, LOGL_NOTICE, "- Restarting at BSN %d, "
"because all window is stalled.\n",
dir.dl.v_a);