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()
...
@@ -51,20 +51,6 @@ void UeAppTask::onLoop()
switch
(
msg
->
msgType
)
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
:
{
case
NtsMessageType
:
:
UE_NAS_TO_APP
:
{
auto
&
w
=
dynamic_cast
<
NmUeNasToApp
&>
(
*
msg
);
auto
&
w
=
dynamic_cast
<
NmUeNasToApp
&>
(
*
msg
);
switch
(
w
.
present
)
switch
(
w
.
present
)
...
...
src/ue/nas/task.cpp
View file @
e5c563fe
...
@@ -80,11 +80,11 @@ void NasTask::onLoop()
...
@@ -80,11 +80,11 @@ void NasTask::onLoop()
}
}
break
;
break
;
}
}
case
NtsMessageType
:
:
UE_
APP_TO_NAS
:
{
case
NtsMessageType
:
:
UE_
TUN_TO_APP
:
{
auto
&
w
=
dynamic_cast
<
NmUe
AppToNas
&>
(
*
msg
);
auto
&
w
=
dynamic_cast
<
NmUe
TunToApp
&>
(
*
msg
);
switch
(
w
.
present
)
switch
(
w
.
present
)
{
{
case
NmUe
AppToNas
:
:
UPLINK_DATA
_DELIVERY
:
{
case
NmUe
TunToApp
:
:
DATA_PDU
_DELIVERY
:
{
sm
->
handleUplinkDataRequest
(
w
.
psi
,
std
::
move
(
w
.
data
));
sm
->
handleUplinkDataRequest
(
w
.
psi
,
std
::
move
(
w
.
data
));
break
;
break
;
}
}
...
...
src/ue/nts.hpp
View file @
e5c563fe
...
@@ -205,22 +205,6 @@ struct NmUeNasToApp : NtsMessage
...
@@ -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
struct
NmUeNasToRls
:
NtsMessage
{
{
enum
PR
enum
PR
...
...
src/ue/tun/task.cpp
View file @
e5c563fe
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#include <cstring>
#include <cstring>
#include <unistd.h>
#include <unistd.h>
#include <ue/
app
/task.hpp>
#include <ue/
nas
/task.hpp>
#include <ue/nts.hpp>
#include <ue/nts.hpp>
#include <utils/libc_error.hpp>
#include <utils/libc_error.hpp>
#include <utils/scoped_thread.hpp>
#include <utils/scoped_thread.hpp>
...
@@ -74,7 +74,7 @@ void TunTask::onStart()
...
@@ -74,7 +74,7 @@ void TunTask::onStart()
{
{
auto
*
receiverArgs
=
new
ReceiverArgs
();
auto
*
receiverArgs
=
new
ReceiverArgs
();
receiverArgs
->
fd
=
m_fd
;
receiverArgs
->
fd
=
m_fd
;
receiverArgs
->
targetTask
=
m_base
->
app
Task
;
receiverArgs
->
targetTask
=
m_base
->
nas
Task
;
receiverArgs
->
psi
=
m_psi
;
receiverArgs
->
psi
=
m_psi
;
m_receiver
=
m_receiver
=
new
ScopedThread
([](
void
*
args
)
{
ReceiverThread
(
reinterpret_cast
<
ReceiverArgs
*>
(
args
));
},
receiverArgs
);
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