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
e5c563fe
Commit
e5c563fe
authored
Dec 24, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Performance improvements
parent
33fd7fe9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
35 deletions
+5
-35
src/ue/app/task.cpp
src/ue/app/task.cpp
+0
-14
src/ue/nas/task.cpp
src/ue/nas/task.cpp
+3
-3
src/ue/nts.hpp
src/ue/nts.hpp
+0
-16
src/ue/tun/task.cpp
src/ue/tun/task.cpp
+2
-2
No files found.
src/ue/app/task.cpp
View file @
e5c563fe
...
...
@@ -51,20 +51,6 @@ void UeAppTask::onLoop()
switch
(
msg
->
msgType
)
{
case
NtsMessageType
:
:
UE_TUN_TO_APP
:
{
auto
&
w
=
dynamic_cast
<
NmUeTunToApp
&>
(
*
msg
);
switch
(
w
.
present
)
{
case
NmUeTunToApp
:
:
DATA_PDU_DELIVERY
:
{
auto
m
=
std
::
make_unique
<
NmUeAppToNas
>
(
NmUeAppToNas
::
UPLINK_DATA_DELIVERY
);
m
->
psi
=
w
.
psi
;
m
->
data
=
std
::
move
(
w
.
data
);
m_base
->
nasTask
->
push
(
std
::
move
(
m
));
break
;
}
}
break
;
}
case
NtsMessageType
:
:
UE_NAS_TO_APP
:
{
auto
&
w
=
dynamic_cast
<
NmUeNasToApp
&>
(
*
msg
);
switch
(
w
.
present
)
...
...
src/ue/nas/task.cpp
View file @
e5c563fe
...
...
@@ -80,11 +80,11 @@ void NasTask::onLoop()
}
break
;
}
case
NtsMessageType
:
:
UE_
APP_TO_NAS
:
{
auto
&
w
=
dynamic_cast
<
NmUe
AppToNas
&>
(
*
msg
);
case
NtsMessageType
:
:
UE_
TUN_TO_APP
:
{
auto
&
w
=
dynamic_cast
<
NmUe
TunToApp
&>
(
*
msg
);
switch
(
w
.
present
)
{
case
NmUe
AppToNas
:
:
UPLINK_DATA
_DELIVERY
:
{
case
NmUe
TunToApp
:
:
DATA_PDU
_DELIVERY
:
{
sm
->
handleUplinkDataRequest
(
w
.
psi
,
std
::
move
(
w
.
data
));
break
;
}
...
...
src/ue/nts.hpp
View file @
e5c563fe
...
...
@@ -205,22 +205,6 @@ struct NmUeNasToApp : NtsMessage
}
};
struct
NmUeAppToNas
:
NtsMessage
{
enum
PR
{
UPLINK_DATA_DELIVERY
,
}
present
;
// UPLINK_DATA_DELIVERY
int
psi
{};
OctetString
data
;
explicit
NmUeAppToNas
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
UE_APP_TO_NAS
),
present
(
present
)
{
}
};
struct
NmUeNasToRls
:
NtsMessage
{
enum
PR
...
...
src/ue/tun/task.cpp
View file @
e5c563fe
...
...
@@ -11,7 +11,7 @@
#include <cstring>
#include <unistd.h>
#include <ue/
app
/task.hpp>
#include <ue/
nas
/task.hpp>
#include <ue/nts.hpp>
#include <utils/libc_error.hpp>
#include <utils/scoped_thread.hpp>
...
...
@@ -74,7 +74,7 @@ void TunTask::onStart()
{
auto
*
receiverArgs
=
new
ReceiverArgs
();
receiverArgs
->
fd
=
m_fd
;
receiverArgs
->
targetTask
=
m_base
->
app
Task
;
receiverArgs
->
targetTask
=
m_base
->
nas
Task
;
receiverArgs
->
psi
=
m_psi
;
m_receiver
=
new
ScopedThread
([](
void
*
args
)
{
ReceiverThread
(
reinterpret_cast
<
ReceiverArgs
*>
(
args
));
},
receiverArgs
);
...
...
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