Commit 601f8158 authored by aligungr's avatar aligungr

Performance improvements

parent 2df6cfd6
......@@ -78,20 +78,14 @@ void RlsCtlLayer::handleUplinkRrcDelivery(int cellId, uint32_t pduId, rrc::RrcCh
if (m_pduMap.count(pduId))
{
m_pduMap.clear();
auto w = std::make_unique<NmUeRlsToRls>(NmUeRlsToRls::RADIO_LINK_FAILURE);
w->rlfCause = rls::ERlfCause::PDU_ID_EXISTS;
m_base->rlsTask->push(std::move(w));
declareRadioLinkFailure(rls::ERlfCause::PDU_ID_EXISTS);
return;
}
if (m_pduMap.size() > MAX_PDU_COUNT)
{
m_pduMap.clear();
auto w = std::make_unique<NmUeRlsToRls>(NmUeRlsToRls::RADIO_LINK_FAILURE);
w->rlfCause = rls::ERlfCause::PDU_ID_FULL;
m_base->rlsTask->push(std::move(w));
declareRadioLinkFailure(rls::ERlfCause::PDU_ID_FULL);
return;
}
......@@ -172,4 +166,11 @@ void RlsCtlLayer::assignCurrentCell(int cellId)
m_servingCell = cellId;
}
void RlsCtlLayer::declareRadioLinkFailure(rls::ERlfCause cause)
{
auto w = std::make_unique<NmUeRlsToRls>(NmUeRlsToRls::RADIO_LINK_FAILURE);
w->rlfCause = cause;
m_base->rlsTask->push(std::move(w));
}
} // namespace nr::ue
\ No newline at end of file
......@@ -37,6 +37,7 @@ class RlsCtlLayer
void handleUplinkRrcDelivery(int cellId, uint32_t pduId, rrc::RrcChannel channel, OctetString &&data);
void assignCurrentCell(int cellId);
void handleRlsMessage(int cellId, rls::RlsMessage &msg);
void declareRadioLinkFailure(rls::ERlfCause cause);
};
} // namespace nr::ue
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment