diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2016-01-21 20:42:40 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2016-02-08 00:45:37 +0100 |
commit | f04a5b33ecf01a9bdbd7e971cddb0a87608d04a6 (patch) | |
tree | ec61a3b19d6123e7211a1ca8ab636d936d4d1aab /src/tbf.cpp | |
parent | 0316dc6e4808d0413a4edf3738edea44193228e4 (diff) |
tbf: Add abort method for downlink TBF
Currently the is a release() function which takes care of
statistics and shutdown of properly finished TBFs, but which
cannot be used for aborted TBFs.
This commit add an abort() method which handles unacked RLC blocks
as lost and doesn't start a release timer. This method will be
invoked by tbf_free() for downlink TBF.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/tbf.cpp')
-rw-r--r-- | src/tbf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp index e8a9e3e..93c932b 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -325,7 +325,8 @@ void tbf_free(struct gprs_rlcmac_tbf *tbf) gprs_rlcmac_rssi_rep(tbf); if (tbf->direction == GPRS_RLCMAC_DL_TBF) { gprs_rlcmac_dl_tbf *dl_tbf = as_dl_tbf(tbf); - gprs_rlcmac_lost_rep(dl_tbf); + + dl_tbf->abort(); dl_tbf->cleanup(); } |