aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.cpp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-27 10:00:47 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 21:24:12 +0100
commit93e048fe272d1d20522c26b96fc7e777255c6906 (patch)
tree36765abb223dc23bf4605e183fc9a9b5814d792b /src/bts.cpp
parent158776411b13cdda080dd3b72296fb97a0141d64 (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/bts.cpp')
-rw-r--r--src/bts.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bts.cpp b/src/bts.cpp
index 39c1fd5..9c0fea2 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -54,6 +54,9 @@ static const struct rate_ctr_desc bts_ctr_description[] = {
{ "tbf.ul.alloc", "TBF UL Allocated "},
{ "tbf.ul.freed", "TBF UL Freed "},
{ "decode.errors", "Decode Errors "},
+ { "sba.allocated", "SBA Allocated "},
+ { "sba.freed", "SBA Freed "},
+ { "sba.timedout", "SBA Timeout "},
};
static const struct rate_ctr_group_desc bts_ctrg_desc = {
@@ -1049,6 +1052,8 @@ int gprs_rlcmac_pdch::rcv_control_block(
} else {
ta = sba->ta;
bts()->timing_advance()->remember(tlli, ta);
+#warning "SBA deleted inline.. enforce capsulation"
+ bts()->sba_freed();
llist_del(&sba->list);
talloc_free(sba);
}
@@ -1096,7 +1101,9 @@ int gprs_rlcmac_pdch::rcv_control_block(
"block, but there is no resource request "
"scheduled!\n");
} else {
+ #warning "SBA deleted inline.. enforce capsulation"
bts()->timing_advance()->remember(ul_control_block->u.Packet_Measurement_Report.TLLI, sba->ta);
+ bts()->sba_freed();
llist_del(&sba->list);
talloc_free(sba);
}