aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-04-29 14:46:52 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-06 15:20:25 +0200
commit29d91e92715945f53aff4530602add765d63946e (patch)
treed45523bcd9b7fa2dc9ce2a71f681abe95462c212
parent801d6fe40cd5bd11257074c7aaf113a57919fb2d (diff)
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
-rw-r--r--src/tbf_dl.cpp3
1 files changed, 3 insertions, 0 deletions
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;
}