Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
lizhongxiao
OpenXG-RAN
Commits
1143d80e
Commit
1143d80e
authored
Sep 23, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start PDCP task
parent
b2e91ff3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
+3
-1
openair2/LAYER2/PDCP_v10.1.0/pdcp.h
openair2/LAYER2/PDCP_v10.1.0/pdcp.h
+2
-2
targets/COMMON/create_tasks.c
targets/COMMON/create_tasks.c
+4
-4
targets/COMMON/create_tasks_ue.c
targets/COMMON/create_tasks_ue.c
+7
-1
No files found.
openair2/LAYER2/PDCP_v10.1.0/pdcp.c
View file @
1143d80e
...
@@ -1006,13 +1006,15 @@ void pdcp_update_stats(const protocol_ctxt_t* const ctxt_pP){
...
@@ -1006,13 +1006,15 @@ void pdcp_update_stats(const protocol_ctxt_t* const ctxt_pP){
#if defined(ENABLE_ITTI)
#if defined(ENABLE_ITTI)
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
void
void
*
pdcp_task
(
void
*
arg
)
pdcp_task
(
void
*
arg
)
{
{
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
MessageDef
*
msg_p
;
MessageDef
*
msg_p
;
int
result
;
int
result
;
instance_t
instance
;
instance_t
instance
;
/* mark in context whether it is an UE or eNodeB */
ctxt
.
enb_flag
=
*
(
int
*
)
arg
;
LOG_I
(
PDCP
,
"Starting PDCP task
\n
"
);
LOG_I
(
PDCP
,
"Starting PDCP task
\n
"
);
itti_mark_task_ready
(
TASK_PDCP
);
itti_mark_task_ready
(
TASK_PDCP
);
...
...
openair2/LAYER2/PDCP_v10.1.0/pdcp.h
View file @
1143d80e
...
@@ -366,14 +366,14 @@ boolean_t pdcp_remove_UE(
...
@@ -366,14 +366,14 @@ boolean_t pdcp_remove_UE(
*/
*/
//void rrc_pdcp_config_release ( const protocol_ctxt_t* const ctxt_pP, rb_id_t);
//void rrc_pdcp_config_release ( const protocol_ctxt_t* const ctxt_pP, rb_id_t);
/*! \fn void pdcp_task(void *args)
/*! \fn void
*
pdcp_task(void *args)
* \brief Runs PDCP task to let it handle incoming/outgoing SDUs
* \brief Runs PDCP task to let it handle incoming/outgoing SDUs
* \param[in] args initial args
* \param[in] args initial args
* \return none
* \return none
* \note None
* \note None
* @ingroup _pdcp
* @ingroup _pdcp
*/
*/
void
pdcp_task
(
void
*
args
);
void
*
pdcp_task
(
void
*
args
);
int
pdcp_module_init
(
void
);
int
pdcp_module_init
(
void
);
void
pdcp_module_cleanup
(
void
);
void
pdcp_module_cleanup
(
void
);
void
pdcp_layer_init
(
void
);
void
pdcp_layer_init
(
void
);
...
...
targets/COMMON/create_tasks.c
View file @
1143d80e
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
# include "f1ap_cu_task.h"
# include "f1ap_cu_task.h"
# include "f1ap_du_task.h"
# include "f1ap_du_task.h"
# include "enb_app.h"
# include "enb_app.h"
# include "pdcp.h"
extern
RAN_CONTEXT_t
RC
;
extern
RAN_CONTEXT_t
RC
;
extern
int
emulate_rf
;
extern
int
emulate_rf
;
...
@@ -85,10 +86,9 @@ int create_tasks(uint32_t enb_nb)
...
@@ -85,10 +86,9 @@ int create_tasks(uint32_t enb_nb)
if
(
enb_nb
>
0
)
{
if
(
enb_nb
>
0
)
{
rc
=
itti_create_task
(
TASK_CU_F1
,
F1AP_CU_task
,
NULL
);
rc
=
itti_create_task
(
TASK_CU_F1
,
F1AP_CU_task
,
NULL
);
AssertFatal
(
rc
>=
0
,
"Create task for CU F1AP failed
\n
"
);
AssertFatal
(
rc
>=
0
,
"Create task for CU F1AP failed
\n
"
);
//RS/BK: Fix me!
int
is_enb
=
1
;
rc
=
itti_create_task
(
TASK_L2L1
,
l2l1_task
,
NULL
);
rc
=
itti_create_task
(
TASK_PDCP
,
pdcp_task
,
&
is_enb
);
AssertFatal
(
rc
>=
0
,
"Create task for L2L1 failed
\n
"
);
AssertFatal
(
rc
>=
0
,
"Create task for PDCP failed
\n
"
);
}
}
/* fall through */
/* fall through */
case
ngran_eNB
:
case
ngran_eNB
:
...
...
targets/COMMON/create_tasks_ue.c
View file @
1143d80e
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
# include "RRC/LTE/rrc_defs.h"
# include "RRC/LTE/rrc_defs.h"
# endif
# endif
# include "enb_app.h"
# include "enb_app.h"
# include "pdcp.h"
int
create_tasks_ue
(
uint32_t
ue_nb
)
int
create_tasks_ue
(
uint32_t
ue_nb
)
{
{
...
@@ -49,6 +50,11 @@ int create_tasks_ue(uint32_t ue_nb)
...
@@ -49,6 +50,11 @@ int create_tasks_ue(uint32_t ue_nb)
LOG_E
(
PDCP
,
"Create task for L2L1 failed
\n
"
);
LOG_E
(
PDCP
,
"Create task for L2L1 failed
\n
"
);
return
-
1
;
return
-
1
;
}
}
int
is_enb
=
0
;
if
(
itti_create_task
(
TASK_PDCP
,
pdcp_task
,
&
is_enb
)
<
0
)
{
LOG_E
(
PDCP
,
"Create task for PDCP failed
\n
"
);
return
-
1
;
}
# if defined(ENABLE_USE_MME)
# if defined(ENABLE_USE_MME)
# if defined(NAS_BUILT_IN_UE)
# if defined(NAS_BUILT_IN_UE)
...
@@ -77,4 +83,4 @@ int create_tasks_ue(uint32_t ue_nb)
...
@@ -77,4 +83,4 @@ int create_tasks_ue(uint32_t ue_nb)
return
0
;
return
0
;
}
}
#endif
#endif
\ No newline at end of file
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