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.
diff --git a/src/tbf.cpp b/src/tbf.cpp
index b76a5ec..54eb3cb 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -911,11 +911,12 @@
|| ((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);