diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-27 10:00:47 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-30 21:24:12 +0100 |
commit | 93e048fe272d1d20522c26b96fc7e777255c6906 (patch) | |
tree | 36765abb223dc23bf4605e183fc9a9b5814d792b /src/sba.cpp | |
parent | 158776411b13cdda080dd3b72296fb97a0141d64 (diff) |
sba: Count SBA allocation, frees and timeouts
Add a warning about the receive message poking in the internal
of the sba. This will be cleaned up in a follow up commit
Diffstat (limited to 'src/sba.cpp')
-rw-r--r-- | src/sba.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sba.cpp b/src/sba.cpp index d87a9a3b..ddcbe52e 100644 --- a/src/sba.cpp +++ b/src/sba.cpp @@ -79,6 +79,7 @@ int SBAController::alloc( sba->ta = ta; llist_add(&sba->list, &m_sbas); + m_bts.sba_allocated(); *_trx = trx; *_ts = ts; @@ -124,6 +125,8 @@ int SBAController::timeout(struct gprs_rlcmac_sba *sba) { LOGP(DRLCMAC, LOGL_NOTICE, "Poll timeout for SBA\n"); llist_del(&sba->list); + m_bts.sba_timedout(); + m_bts.sba_freed(); talloc_free(sba); return 0; @@ -138,6 +141,7 @@ void SBAController::free_resources(struct gprs_rlcmac_pdch *pdch) llist_for_each_entry_safe(sba, sba2, &m_sbas, list) { if (sba->trx_no == trx_no && sba->ts_no == ts_no) { llist_del(&sba->list); + m_bts.sba_freed(); talloc_free(sba); } } |