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
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 @@
{ "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 @@
} 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 @@
"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);
}