From 29d91e92715945f53aff4530602add765d63946e Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Wed, 29 Apr 2015 14:46:52 +0200 Subject: tbf: Added calls to llc_dropped_frame Currently this function which increments the corresponding counter is just called in gprs_llc::clear(). It is not called on places where LLC DISCARDED messages are sent. This commit adds calls to llc_dropped_frame() at these places. Sponsored-by: On-Waves ehf --- src/tbf_dl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp index 81beff7d..45c463c7 100644 --- a/src/tbf_dl.cpp +++ b/src/tbf_dl.cpp @@ -193,6 +193,7 @@ static int tbf_new_dl_assignment(struct gprs_rlcmac_bts *bts, LOGP(DRLCMAC, LOGL_NOTICE, "No PDCH resource\n"); bssgp_tx_llc_discarded(gprs_bssgp_pcu_current_bctx(), tlli, 1, len); + bts->bts->llc_dropped_frame(); return -EBUSY; } dl_tbf->m_tlli = tlli; @@ -285,6 +286,7 @@ struct msgb *gprs_rlcmac_dl_tbf::llc_dequeue(bssgp_bvc_ctx *bctx) frames++; octets += msg->len; msgb_free(msg); + bts->llc_dropped_frame(); continue; } @@ -779,6 +781,7 @@ void gprs_rlcmac_dl_tbf::reuse_tbf(const uint8_t *data, const uint16_t len) LOGP(DRLCMAC, LOGL_NOTICE, "No PDCH resource\n"); bssgp_tx_llc_discarded(gprs_bssgp_pcu_current_bctx(), m_tlli, 1, len); + bts->llc_dropped_frame(); return; } -- cgit v1.2.3