forked from cellular-infrastructure/osmo-pcu
introduce new counter rlc_sent_dummy
rlc_sent_dummy count the amount of dummy package which are sent in case no data packet is in the queue. Change-Id: Ia60eab853d9145980f30d63e4ce4b520b8c51381 Reviewed-on: https://gerrit.osmocom.org/85 Tested-by: Jenkins Builder Reviewed-by: Holger Freyther <holger@freyther.de>
This commit is contained in:
parent
9736d00b12
commit
2cb1547993
|
@ -71,6 +71,7 @@ static const struct rate_ctr_desc bts_ctr_description[] = {
|
||||||
{ "rlc.ack.failed", "RLC Ack Failed "},
|
{ "rlc.ack.failed", "RLC Ack Failed "},
|
||||||
{ "rlc.rel.timedout", "RLC Release Timeout "},
|
{ "rlc.rel.timedout", "RLC Release Timeout "},
|
||||||
{ "rlc.late-block", "RLC Late Block "},
|
{ "rlc.late-block", "RLC Late Block "},
|
||||||
|
{ "rlc.sent_dummy", "RLC Sent Dummy "},
|
||||||
{ "decode.errors", "Decode Errors "},
|
{ "decode.errors", "Decode Errors "},
|
||||||
{ "sba.allocated", "SBA Allocated "},
|
{ "sba.allocated", "SBA Allocated "},
|
||||||
{ "sba.freed", "SBA Freed "},
|
{ "sba.freed", "SBA Freed "},
|
||||||
|
|
|
@ -233,6 +233,7 @@ public:
|
||||||
CTR_RLC_ACK_FAILED,
|
CTR_RLC_ACK_FAILED,
|
||||||
CTR_RLC_REL_TIMEDOUT,
|
CTR_RLC_REL_TIMEDOUT,
|
||||||
CTR_RLC_LATE_BLOCK,
|
CTR_RLC_LATE_BLOCK,
|
||||||
|
CTR_RLC_SENT_DUMMY,
|
||||||
CTR_DECODE_ERRORS,
|
CTR_DECODE_ERRORS,
|
||||||
CTR_SBA_ALLOCATED,
|
CTR_SBA_ALLOCATED,
|
||||||
CTR_SBA_FREED,
|
CTR_SBA_FREED,
|
||||||
|
@ -309,6 +310,7 @@ public:
|
||||||
void rlc_ack_failed();
|
void rlc_ack_failed();
|
||||||
void rlc_rel_timedout();
|
void rlc_rel_timedout();
|
||||||
void rlc_late_block();
|
void rlc_late_block();
|
||||||
|
void rlc_sent_dummy();
|
||||||
void decode_error();
|
void decode_error();
|
||||||
void sba_allocated();
|
void sba_allocated();
|
||||||
void sba_freed();
|
void sba_freed();
|
||||||
|
@ -449,6 +451,7 @@ CREATE_COUNT_INLINE(rlc_ack_timedout, CTR_RLC_ACK_TIMEDOUT);
|
||||||
CREATE_COUNT_INLINE(rlc_ack_failed, CTR_RLC_ACK_FAILED);
|
CREATE_COUNT_INLINE(rlc_ack_failed, CTR_RLC_ACK_FAILED);
|
||||||
CREATE_COUNT_INLINE(rlc_rel_timedout, CTR_RLC_REL_TIMEDOUT);
|
CREATE_COUNT_INLINE(rlc_rel_timedout, CTR_RLC_REL_TIMEDOUT);
|
||||||
CREATE_COUNT_INLINE(rlc_late_block, CTR_RLC_LATE_BLOCK);
|
CREATE_COUNT_INLINE(rlc_late_block, CTR_RLC_LATE_BLOCK);
|
||||||
|
CREATE_COUNT_INLINE(rlc_sent_dummy, CTR_RLC_SENT_DUMMY);
|
||||||
CREATE_COUNT_INLINE(decode_error, CTR_DECODE_ERRORS)
|
CREATE_COUNT_INLINE(decode_error, CTR_DECODE_ERRORS)
|
||||||
CREATE_COUNT_INLINE(sba_allocated, CTR_SBA_ALLOCATED)
|
CREATE_COUNT_INLINE(sba_allocated, CTR_SBA_ALLOCATED)
|
||||||
CREATE_COUNT_INLINE(sba_freed, CTR_SBA_FREED)
|
CREATE_COUNT_INLINE(sba_freed, CTR_SBA_FREED)
|
||||||
|
|
|
@ -348,8 +348,12 @@ int gprs_rlcmac_rcv_rts_block(struct gprs_rlcmac_bts *bts,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Prio 3: send dummy contol message */
|
/* Prio 3: send dummy contol message */
|
||||||
if (!msg)
|
if (!msg) {
|
||||||
|
/* increase counter */
|
||||||
msg = sched_dummy();
|
msg = sched_dummy();
|
||||||
|
if (msg)
|
||||||
|
bts->bts->rlc_sent_dummy();
|
||||||
|
}
|
||||||
|
|
||||||
if (!msg)
|
if (!msg)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Loading…
Reference in New Issue