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
ZhouShuya
OpenXG-RAN
Commits
0d3736a7
Commit
0d3736a7
authored
Mar 10, 2021
by
Xue Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace pdcp_layer_init_for_CU() with pdcp_layer_init()
parent
8ef8582b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
20 deletions
+4
-20
executables/nr-softmodem.c
executables/nr-softmodem.c
+0
-1
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
-17
No files found.
executables/nr-softmodem.c
View file @
0d3736a7
...
...
@@ -733,7 +733,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_config.c
View file @
0d3736a7
...
...
@@ -1797,7 +1797,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 @
0d3736a7
...
...
@@ -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 @
0d3736a7
...
...
@@ -432,7 +432,9 @@ void pdcp_layer_init()
nr_pdcp_ue_manager
=
new_nr_pdcp_ue_manager
(
1
);
init_nr_rlc_data_req_queue
();
if
(
!
NODE_IS_CU
(
node_type
))
{
init_nr_rlc_data_req_queue
();
}
}
void
nr_pdcp_layer_init_ue
()
...
...
@@ -453,22 +455,6 @@ void nr_pdcp_layer_init_ue()
init_nr_rlc_data_req_queue
();
}
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
;
}
initialized
=
1
;
if
(
pthread_mutex_unlock
(
&
m
)
!=
0
)
abort
();
nr_pdcp_ue_manager
=
new_nr_pdcp_ue_manager
(
1
);
}
#include "nfapi/oai_integration/vendor_ext.h"
#include "targets/RT/USER/lte-softmodem.h"
#include "openair2/RRC/NAS/nas_config.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