rlc: Count nacked frames in the statistics too
This commit is contained in:
parent
5a7f636ce4
commit
092478f294
|
@ -57,6 +57,7 @@ static const struct rate_ctr_desc bts_ctr_description[] = {
|
||||||
{ "rlc.sent", "RLC Sent "},
|
{ "rlc.sent", "RLC Sent "},
|
||||||
{ "rlc.resent", "RLC Resent "},
|
{ "rlc.resent", "RLC Resent "},
|
||||||
{ "rlc.stalled", "RLC Stalled "},
|
{ "rlc.stalled", "RLC Stalled "},
|
||||||
|
{ "rlc.nacked", "RLC Nacked "},
|
||||||
{ "decode.errors", "Decode Errors "},
|
{ "decode.errors", "Decode Errors "},
|
||||||
{ "sba.allocated", "SBA Allocated "},
|
{ "sba.allocated", "SBA Allocated "},
|
||||||
{ "sba.freed", "SBA Freed "},
|
{ "sba.freed", "SBA Freed "},
|
||||||
|
|
|
@ -161,6 +161,7 @@ public:
|
||||||
CTR_RLC_SENT,
|
CTR_RLC_SENT,
|
||||||
CTR_RLC_RESENT,
|
CTR_RLC_RESENT,
|
||||||
CTR_RLC_STALLED,
|
CTR_RLC_STALLED,
|
||||||
|
CTR_RLC_NACKED,
|
||||||
CTR_DECODE_ERRORS,
|
CTR_DECODE_ERRORS,
|
||||||
CTR_SBA_ALLOCATED,
|
CTR_SBA_ALLOCATED,
|
||||||
CTR_SBA_FREED,
|
CTR_SBA_FREED,
|
||||||
|
@ -210,6 +211,7 @@ public:
|
||||||
void rlc_sent();
|
void rlc_sent();
|
||||||
void rlc_resent();
|
void rlc_resent();
|
||||||
void rlc_stalled();
|
void rlc_stalled();
|
||||||
|
void rlc_nacked();
|
||||||
void decode_error();
|
void decode_error();
|
||||||
void sba_allocated();
|
void sba_allocated();
|
||||||
void sba_freed();
|
void sba_freed();
|
||||||
|
@ -276,6 +278,7 @@ CREATE_COUNT_INLINE(tbf_reused, CTR_TBF_REUSED)
|
||||||
CREATE_COUNT_INLINE(rlc_sent, CTR_RLC_SENT)
|
CREATE_COUNT_INLINE(rlc_sent, CTR_RLC_SENT)
|
||||||
CREATE_COUNT_INLINE(rlc_resent, CTR_RLC_RESENT)
|
CREATE_COUNT_INLINE(rlc_resent, CTR_RLC_RESENT)
|
||||||
CREATE_COUNT_INLINE(rlc_stalled, CTR_RLC_STALLED)
|
CREATE_COUNT_INLINE(rlc_stalled, CTR_RLC_STALLED)
|
||||||
|
CREATE_COUNT_INLINE(rlc_nacked, CTR_RLC_NACKED)
|
||||||
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)
|
||||||
|
|
|
@ -1471,6 +1471,7 @@ int gprs_rlcmac_tbf::snd_dl_ack(uint8_t final, uint8_t ssn, uint8_t *rbb)
|
||||||
LOGP(DRLCMACDL, LOGL_DEBUG, "- got "
|
LOGP(DRLCMACDL, LOGL_DEBUG, "- got "
|
||||||
"NACK for BSN=%d\n", bsn);
|
"NACK for BSN=%d\n", bsn);
|
||||||
dir.dl.v_b[bsn & mod_sns_half] = 'N';
|
dir.dl.v_b[bsn & mod_sns_half] = 'N';
|
||||||
|
bts->rlc_nacked();
|
||||||
lost++;
|
lost++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue