Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
UERANSIM
Commits
d1133738
Commit
d1133738
authored
Jan 12, 2022
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Performance improvements
parent
f1161f24
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
15 deletions
+22
-15
src/ue/rls/ctl_layer.cpp
src/ue/rls/ctl_layer.cpp
+20
-13
src/ue/rls/ctl_layer.hpp
src/ue/rls/ctl_layer.hpp
+1
-1
src/ue/rls/udp_layer.cpp
src/ue/rls/udp_layer.cpp
+1
-1
No files found.
src/ue/rls/ctl_layer.cpp
View file @
d1133738
...
...
@@ -13,21 +13,28 @@ RlsCtlLayer::RlsCtlLayer(UeTask *ue) : m_ue{ue}, m_servingCell{}, m_pduMap{}, m_
m_logger
=
ue
->
logBase
->
makeUniqueLogger
(
ue
->
config
->
getLoggerPrefix
()
+
"rls-ctl"
);
}
void
RlsCtlLayer
::
handleRlsMessage
(
int
cellId
,
rls
::
RlsMessage
&
msg
)
void
RlsCtlLayer
::
handleRlsMessage
(
int
cellId
,
rls
::
EMessageType
msgType
,
uint8_t
*
buffer
,
size_t
size
)
{
if
(
msg
.
msg
Type
==
rls
::
EMessageType
::
PDU_TRANSMISSION_ACK
)
if
(
msgType
==
rls
::
EMessageType
::
PDU_TRANSMISSION_ACK
)
{
auto
&
m
=
(
rls
::
RlsPduTransmissionAck
&
)
msg
;
for
(
auto
pduId
:
m
.
pduIds
)
m_pduMap
.
erase
(
pduId
);
OctetView
view
=
rls
::
DecodePduTransmissionAck
(
buffer
,
size
)
;
while
(
view
.
hasNext
()
)
m_pduMap
.
erase
(
view
.
read4UI
()
);
}
else
if
(
msg
.
msg
Type
==
rls
::
EMessageType
::
PDU_TRANSMISSION
)
else
if
(
msgType
==
rls
::
EMessageType
::
PDU_TRANSMISSION
)
{
auto
&
m
=
(
rls
::
RlsPduTransmission
&
)
msg
;
if
(
m
.
pduId
!=
0
)
m_pendingAck
[
cellId
].
push_back
(
m
.
pduId
);
rls
::
EPduType
pduType
;
uint32_t
pduId
;
uint32_t
payload
;
const
uint8_t
*
pduData
;
size_t
pduLength
;
if
(
m
.
pduType
==
rls
::
EPduType
::
DATA
)
rls
::
DecodePduTransmission
(
buffer
,
size
,
pduType
,
pduId
,
payload
,
pduData
,
pduLength
);
if
(
pduId
!=
0
)
m_pendingAck
[
cellId
].
push_back
(
pduId
);
if
(
pduType
==
rls
::
EPduType
::
DATA
)
{
if
(
cellId
!=
m_servingCell
)
{
...
...
@@ -36,10 +43,10 @@ void RlsCtlLayer::handleRlsMessage(int cellId, rls::RlsMessage &msg)
return
;
}
m_ue
->
nas
->
handleDownlinkDataRequest
(
static_cast
<
int
>
(
m
.
payload
),
std
::
move
(
m
.
pdu
)
);
m_ue
->
nas
->
handleDownlinkDataRequest
(
static_cast
<
int
>
(
payload
),
pduData
,
pduLength
);
}
else
if
(
m
.
pduType
==
rls
::
EPduType
::
RRC
)
m_ue
->
rrc
->
handleDownlinkRrc
(
cellId
,
static_cast
<
rrc
::
RrcChannel
>
(
m
.
payload
),
m
.
pdu
);
else
if
(
pduType
==
rls
::
EPduType
::
RRC
)
m_ue
->
rrc
->
handleDownlinkRrc
(
cellId
,
static_cast
<
rrc
::
RrcChannel
>
(
payload
),
pduData
,
pduLength
);
else
m_logger
->
err
(
"Unhandled RLS PDU type"
);
}
...
...
src/ue/rls/ctl_layer.hpp
View file @
d1133738
...
...
@@ -38,7 +38,7 @@ class RlsCtlLayer
public:
void
onAckControlTimerExpired
();
void
onAckSendTimerExpired
();
void
handleRlsMessage
(
int
cellId
,
rls
::
RlsMessage
&
msg
);
void
handleRlsMessage
(
int
cellId
,
rls
::
EMessageType
msgType
,
uint8_t
*
buffer
,
size_t
size
);
void
assignCurrentCell
(
int
cellId
);
void
handleUplinkRrcDelivery
(
int
cellId
,
uint32_t
pduId
,
rrc
::
RrcChannel
channel
,
OctetString
&&
data
);
void
handleUplinkDataDelivery
(
int
psi
,
uint8_t
*
buffer
,
size_t
size
);
...
...
src/ue/rls/udp_layer.cpp
View file @
d1133738
...
...
@@ -103,7 +103,7 @@ void RlsUdpLayer::receiveRlsPdu(const InetAddress &addr, uint8_t *buffer, size_t
return
;
}
m_ue
->
rlsCtl
->
handleRlsMessage
(
m_cells
[
sti
].
cellId
,
msgType
,
sti
,
buffer
,
size
);
m_ue
->
rlsCtl
->
handleRlsMessage
(
m_cells
[
sti
].
cellId
,
msgType
,
buffer
,
size
);
}
void
RlsUdpLayer
::
onSignalChangeOrLost
(
int
cellId
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment