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
wangjie
OpenXG-RAN
Commits
1b69c2a0
Commit
1b69c2a0
authored
Jun 08, 2021
by
Masayuki Harada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove pdcp_layer_init_for_CU function and merge to pdcp_layer_init.
parent
54666a93
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
22 deletions
+5
-22
executables/nr-softmodem.c
executables/nr-softmodem.c
+0
-1
openair2/GNB_APP/gnb_app.c
openair2/GNB_APP/gnb_app.c
+1
-3
openair2/GNB_APP/gnb_config.c
openair2/GNB_APP/gnb_config.c
+1
-1
openair2/LAYER2/nr_pdcp/nr_pdcp.h
openair2/LAYER2/nr_pdcp/nr_pdcp.h
+0
-1
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
+3
-16
No files found.
executables/nr-softmodem.c
View file @
1b69c2a0
...
...
@@ -625,7 +625,6 @@ static void wait_nfapi_init(char *thread_name) {
void
init_pdcp
(
void
)
{
if
(
!
NODE_IS_DU
(
RC
.
nrrrc
[
0
]
->
node_type
))
{
// pdcp_layer_init();
// pdcp_layer_init_for_CU();
uint32_t
pdcp_initmask
=
(
IS_SOFTMODEM_NOS1
)
?
(
PDCP_USE_NETLINK_BIT
|
LINK_ENB_PDCP_TO_IP_DRIVER_BIT
)
:
LINK_ENB_PDCP_TO_GTPV1U_BIT
;
if
(
IS_SOFTMODEM_NOS1
)
{
...
...
openair2/GNB_APP/gnb_app.c
View file @
1b69c2a0
...
...
@@ -135,8 +135,7 @@ static uint32_t gNB_app_register_x2(uint32_t gnb_id_start, uint32_t gnb_id_end)
static
void
init_pdcp
(
void
)
{
if
(
!
NODE_IS_DU
(
RC
.
nrrrc
[
0
]
->
node_type
))
{
// pdcp_layer_init();
// pdcp_layer_init_for_CU();
pdcp_layer_init
();
uint32_t
pdcp_initmask
=
(
IS_SOFTMODEM_NOS1
)
?
(
PDCP_USE_NETLINK_BIT
|
LINK_ENB_PDCP_TO_IP_DRIVER_BIT
)
:
LINK_ENB_PDCP_TO_GTPV1U_BIT
;
if
(
IS_SOFTMODEM_NOS1
)
{
...
...
@@ -226,7 +225,6 @@ void *gNB_app_task(void *args_p)
LOG_E
(
F1AP
,
"Create task for F1AP CU failed
\n
"
);
AssertFatal
(
1
==
0
,
"exiting"
);
}
pdcp_layer_init_for_CU
();
}
if
(
NODE_IS_DU
(
RC
.
nrrrc
[
0
]
->
node_type
))
{
...
...
openair2/GNB_APP/gnb_config.c
View file @
1b69c2a0
...
...
@@ -2086,7 +2086,7 @@ void nr_read_config_and_init(void) {
}
if
(
NODE_IS_CU
(
RC
.
nrrrc
[
0
]
->
node_type
))
{
pdcp_layer_init
_for_CU
();
pdcp_layer_init
();
// nr_DRB_preconfiguration(0x1234);
rrc_init_nr_global_param
();
}
...
...
openair2/LAYER2/nr_pdcp/nr_pdcp.h
View file @
1b69c2a0
...
...
@@ -24,7 +24,6 @@
#ifndef _NR_PDCP_H_
#define _NR_PDCP_H_
void
pdcp_layer_init_for_CU
(
void
);
void
nr_pdcp_layer_init_ue
(
void
);
void
nr_DRB_preconfiguration
(
uint16_t
crnti
);
...
...
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
View file @
1b69c2a0
...
...
@@ -369,25 +369,12 @@ void pdcp_layer_init(void)
if
(
pthread_mutex_unlock
(
&
m
)
!=
0
)
abort
();
nr_pdcp_ue_manager
=
new_nr_pdcp_ue_manager
(
1
);
init_nr_rlc_data_req_queue
();
nr_pdcp_init_timer_thread
(
nr_pdcp_ue_manager
);
}
void
pdcp_layer_init_for_CU
(
void
)
{
/* hack: be sure to initialize only once */
static
pthread_mutex_t
m
=
PTHREAD_MUTEX_INITIALIZER
;
static
int
initialized
=
0
;
if
(
pthread_mutex_lock
(
&
m
)
!=
0
)
abort
();
if
(
initialized
)
{
if
(
pthread_mutex_unlock
(
&
m
)
!=
0
)
abort
();
return
;
if
((
RC
.
nrrrc
==
NULL
)
||
(
!
NODE_IS_CU
(
RC
.
nrrrc
[
0
]
->
node_type
)))
{
init_nr_rlc_data_req_queue
();
}
initialized
=
1
;
if
(
pthread_mutex_unlock
(
&
m
)
!=
0
)
abort
();
nr_pdcp_
ue_manager
=
new_nr_pdcp_ue_manager
(
1
);
nr_pdcp_
init_timer_thread
(
nr_pdcp_ue_manager
);
}
#include "nfapi/oai_integration/vendor_ext.h"
...
...
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