mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-trx.git
synced 2025-11-03 13:43:18 +00:00
Add rate counter for missing Txbursts when scheduled towards the radioInterface
Related: OS#4487 Change-Id: Ibb2c492b3c67cbab11fbb936ae3a090fb5756aa8
This commit is contained in:
@@ -431,13 +431,14 @@ void Transceiver::pushRadioVector(GSM::Time &nowTime)
|
||||
std::vector<signalVector *> bursts(mChans);
|
||||
std::vector<bool> zeros(mChans);
|
||||
std::vector<bool> filler(mChans, true);
|
||||
bool stale_bursts_changed;
|
||||
bool ratectr_changed;
|
||||
|
||||
TN = nowTime.TN();
|
||||
|
||||
for (size_t i = 0; i < mChans; i ++) {
|
||||
state = &mStates[i];
|
||||
stale_bursts_changed = false;
|
||||
ratectr_changed = false;
|
||||
|
||||
zeros[i] = state->chanType[TN] == NONE;
|
||||
|
||||
Mutex *mtx = mTxPriorityQueues[i].getMutex();
|
||||
@@ -447,7 +448,7 @@ void Transceiver::pushRadioVector(GSM::Time &nowTime)
|
||||
LOGCHAN(i, DTRXDDL, NOTICE) << "dumping STALE burst in TRX->SDR interface ("
|
||||
<< burst->getTime() <<" vs " << nowTime << "), retrans=" << state->mRetrans;
|
||||
state->ctrs.tx_stale_bursts++;
|
||||
stale_bursts_changed = true;
|
||||
ratectr_changed = true;
|
||||
if (state->mRetrans)
|
||||
updateFillerTable(i, burst);
|
||||
delete burst;
|
||||
@@ -467,11 +468,17 @@ void Transceiver::pushRadioVector(GSM::Time &nowTime)
|
||||
} else {
|
||||
modFN = nowTime.FN() % state->fillerModulus[TN];
|
||||
bursts[i] = state->fillerTable[modFN][TN];
|
||||
if (state->chanType[TN] != NONE) {
|
||||
LOGCHAN(i, DTRXDDL, NOTICE) << "No Tx burst available for " << nowTime
|
||||
<< ", retrans=" << state->mRetrans;
|
||||
state->ctrs.tx_unavailable_bursts++;
|
||||
ratectr_changed = true;
|
||||
}
|
||||
}
|
||||
|
||||
mtx->unlock();
|
||||
|
||||
if (stale_bursts_changed)
|
||||
if (ratectr_changed)
|
||||
dispatch_trx_rate_ctr_change(state, i);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user