diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-13 16:43:26 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-13 16:43:26 +0100 |
commit | b3d5ee2934f930e611cd4447b90dce6723340062 (patch) | |
tree | a6776f5f9a7568abee98556316617903a35cefe0 /src/tbf.cpp | |
parent | 51e093bd1cbe6d91278f72c82fbd54711e4a9ede (diff) |
bts: Count the number of llc frames that were "scheduled" to be sent
This does not mean that they have been successfully transferred
to the SGSN/MS but at least that they have reached a certain point
in the message flow.
Diffstat (limited to 'src/tbf.cpp')
-rw-r--r-- | src/tbf.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp index 2310f855..aa0f2236 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -101,6 +101,7 @@ int gprs_rlcmac_tbf::append_data(const uint8_t ms_class, #warning "verify that m_llc.index/length is 0... check the state change" bts->tbf_reused(); m_llc.put_frame(data, len); + bts->llc_frame_sched(); /* reset rlc states */ memset(&dir.dl, 0, sizeof(dir.dl)); /* keep to flags */ @@ -190,6 +191,7 @@ static int tbf_new_dl_assignment(struct gprs_rlcmac_bts *bts, /* new TBF, so put first frame */ tbf->m_llc.put_frame(data, len); + tbf->bts->llc_frame_sched(); /* Store IMSI for later look-up and PCH retransmission */ tbf->assign_imsi(imsi); @@ -695,7 +697,7 @@ struct msgb *gprs_rlcmac_tbf::llc_dequeue(bssgp_bvc_ctx *bctx) LOGP(DRLCMACDL, LOGL_NOTICE, "%s Discarding LLC PDU " "because lifetime limit reached\n", tbf_name(this)); - bts->timedout_frame(); + bts->llc_timedout_frame(); frames++; octets += msg->len; msgb_free(msg); @@ -1083,6 +1085,7 @@ do_resend: LOGP(DRLCMACDL, LOGL_INFO, "- Dequeue next LLC for " "%s (len=%d)\n", tbf_name(this), msg->len); m_llc.put_frame(msg->data, msg->len); + bts->llc_frame_sched(); msgb_free(msg); } /* if we have more data and we have space left */ @@ -1538,6 +1541,7 @@ int gprs_rlcmac_tbf::snd_dl_ack(uint8_t final, uint8_t ssn, uint8_t *rbb) } #warning "Copy and paste on the sender path" m_llc.put_frame(msg->data, msg->len); + bts->llc_frame_sched(); msgb_free(msg); /* we have a message, so we trigger downlink assignment, and there |