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
spbro
OpenXG-RAN
Commits
569b9fc5
Commit
569b9fc5
authored
Jan 04, 2023
by
laurent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix srb2 addition, simplify and remove dead code, fix one race
parent
9fa89151
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
99 additions
and
307 deletions
+99
-307
executables/cuup.c
executables/cuup.c
+4
-1
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+0
-4
openair1/SIMULATION/NR_PHY/prachsim.c
openair1/SIMULATION/NR_PHY/prachsim.c
+0
-2
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+0
-3
openair2/F1AP/dummy_enb.c
openair2/F1AP/dummy_enb.c
+0
-6
openair2/GNB_APP/gnb_config.c
openair2/GNB_APP/gnb_config.c
+0
-2
openair2/LAYER2/NR_MAC_gNB/main.c
openair2/LAYER2/NR_MAC_gNB/main.c
+0
-3
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
+1
-6
openair2/RRC/NR/cucp_cuup_direct.c
openair2/RRC/NR/cucp_cuup_direct.c
+2
-1
openair2/RRC/NR/nr_rrc_common.c
openair2/RRC/NR/nr_rrc_common.c
+6
-27
openair2/RRC/NR/nr_rrc_extern.h
openair2/RRC/NR/nr_rrc_extern.h
+3
-7
openair2/RRC/NR/nr_rrc_proto.h
openair2/RRC/NR/nr_rrc_proto.h
+2
-22
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+81
-223
No files found.
executables/cuup.c
View file @
569b9fc5
...
...
@@ -112,7 +112,10 @@ void fill_DRB_configList(const protocol_ctxt_t *const ctxt_pP, rrc_gNB_ue_contex
{
abort
();
}
NR_SRB_ToAddModList_t
**
generateSRB2_confList
(
gNB_RRC_UE_t
*
ue
,
NR_SRB_ToAddModList_t
*
SRB_configList
,
uint8_t
xid
)
{
abort
();
}
int
main
(
int
argc
,
char
**
argv
)
{
/// static configuration for NR at the moment
...
...
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
569b9fc5
...
...
@@ -80,10 +80,6 @@ const char *__asan_default_options()
/* don't do leak checking in nr_ulsim, not finished yet */
return
"detect_leaks=0"
;
}
LCHAN_DESC
DCCH_LCHAN_DESC
,
DTCH_DL_LCHAN_DESC
,
DTCH_UL_LCHAN_DESC
;
rlc_info_t
Rlc_info_um
,
Rlc_info_am_config
;
PHY_VARS_gNB
*
gNB
;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
...
...
openair1/SIMULATION/NR_PHY/prachsim.c
View file @
569b9fc5
...
...
@@ -59,8 +59,6 @@
#define NR_PRACH_DEBUG 1
#define PRACH_WRITE_OUTPUT_DEBUG 1
LCHAN_DESC
DCCH_LCHAN_DESC
,
DTCH_DL_LCHAN_DESC
,
DTCH_UL_LCHAN_DESC
;
rlc_info_t
Rlc_info_um
,
Rlc_info_am_config
;
THREAD_STRUCT
thread_struct
;
char
*
parallel_config
=
NULL
;
char
*
worker_config
=
NULL
;
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
569b9fc5
...
...
@@ -77,9 +77,6 @@ const char *__asan_default_options()
return
"detect_leaks=0"
;
}
LCHAN_DESC
DCCH_LCHAN_DESC
,
DTCH_DL_LCHAN_DESC
,
DTCH_UL_LCHAN_DESC
;
rlc_info_t
Rlc_info_um
,
Rlc_info_am_config
;
PHY_VARS_gNB
*
gNB
;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
...
...
openair2/F1AP/dummy_enb.c
View file @
569b9fc5
...
...
@@ -26,12 +26,6 @@
#include "NR_ServingCellConfigCommon.h"
#include "NR_MIB.h"
void
apply_macrlc_config
(
gNB_RRC_INST
*
rrc
,
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
const
protocol_ctxt_t
*
const
ctxt_pP
)
{
abort
();
}
bool
sdap_data_req
(
protocol_ctxt_t
*
ctxt_p
,
const
ue_id_t
ue_id
,
const
srb_flag_t
srb_flag
,
...
...
openair2/GNB_APP/gnb_config.c
View file @
569b9fc5
...
...
@@ -2254,7 +2254,5 @@ void nr_read_config_and_init(void) {
if
(
NODE_IS_CU
(
RC
.
nrrrc
[
0
]
->
node_type
)
&&
RC
.
nrrrc
[
0
]
->
node_type
!=
ngran_gNB_CUCP
)
{
pdcp_layer_init
();
// nr_DRB_preconfiguration(0x1234);
rrc_init_nr_global_param
();
}
}
openair2/LAYER2/NR_MAC_gNB/main.c
View file @
569b9fc5
...
...
@@ -254,9 +254,6 @@ void mac_top_init_gNB(ngran_node_t node_type)
if
(
IS_SOFTMODEM_NOS1
&&
get_softmodem_params
()
->
phy_test
)
nr_DRB_preconfiguration
(
0x1234
);
rrc_init_nr_global_param
();
}
else
{
RC
.
nrmac
=
NULL
;
}
...
...
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
View file @
569b9fc5
...
...
@@ -1112,12 +1112,7 @@ void nr_DRB_preconfiguration(ue_id_t crntiMaybeUEid)
nr_pdcp_add_drbs
(
ctxt
.
enb_flag
,
ctxt
.
rntiMaybeUEid
,
rbconfig
->
drb_ToAddModList
,
0
,
NULL
,
NULL
,
Rlc_Bearer_ToAdd_list
);
nr_rrc_rlc_config_asn1_req
(
&
ctxt
,
(
NR_SRB_ToAddModList_t
*
)
NULL
,
rbconfig
->
drb_ToAddModList
,
rbconfig
->
drb_ToReleaseList
,
(
LTE_PMCH_InfoList_r9_t
*
)
NULL
,
Rlc_Bearer_ToAdd_list
);
nr_rrc_rlc_config_asn1_req
(
&
ctxt
,
(
NR_SRB_ToAddModList_t
*
)
NULL
,
rbconfig
->
drb_ToAddModList
,
NULL
,
(
LTE_PMCH_InfoList_r9_t
*
)
NULL
,
Rlc_Bearer_ToAdd_list
);
LOG_D
(
PDCP
,
"%s:%d: done RRC PDCP/RLC ASN1 request for UE ID/RNTI %ld
\n
"
,
__FUNCTION__
,
__LINE__
,
ctxt
.
rntiMaybeUEid
);
}
...
...
openair2/RRC/NR/cucp_cuup_direct.c
View file @
569b9fc5
...
...
@@ -185,12 +185,13 @@ static void cucp_cuup_bearer_context_setup_direct(e1ap_bearer_setup_req_t *const
fill_DRB_configList
(
&
ctxt
,
ue_context_p
);
gNB_RRC_INST
*
rrc
=
RC
.
nrrrc
[
ctxt
.
module_id
];
NR_SRB_ToAddModList_t
**
SRB_configList2
=
generateSRB2_confList
(
&
ue_context_p
->
ue_context
,
ue_context_p
->
ue_context
.
SRB_configList
,
1
);
// GTP tunnel for UL
int
ret
=
drb_config_gtpu_create
(
&
ctxt
,
ue_context_p
,
req
,
ue_context_p
->
ue_context
.
DRB_configList
,
ue_context_p
->
ue_context
.
SRB_configList
,
*
SRB_configList2
,
rrc
->
gtpInstN3
);
if
(
ret
<
0
)
AssertFatal
(
false
,
"Unable to configure DRB or to create GTP Tunnel
\n
"
);
...
...
openair2/RRC/NR/nr_rrc_common.c
View file @
569b9fc5
...
...
@@ -49,35 +49,14 @@ extern UE_MAC_INST *UE_mac_inst;
extern
mui_t
rrc_gNB_mui
;
//-----------------------------------------------------------------------------
int
rrc_init_nr_global_param
(
void
){
void
rrc_init_nr_srb_param
(
NR_LCHAN_DESC
*
chan
)
{
rrc_rlc_register_rrc
(
rrc_data_ind
,
NULL
);
//register with rlc
DCCH_LCHAN_DESC
.
transport_block_size
=
4
;
DCCH_LCHAN_DESC
.
max_transport_blocks
=
16
;
DCCH_LCHAN_DESC
.
Delay_class
=
1
;
DTCH_DL_LCHAN_DESC
.
transport_block_size
=
52
;
DTCH_DL_LCHAN_DESC
.
max_transport_blocks
=
20
;
DTCH_DL_LCHAN_DESC
.
Delay_class
=
1
;
DTCH_UL_LCHAN_DESC
.
transport_block_size
=
52
;
DTCH_UL_LCHAN_DESC
.
max_transport_blocks
=
20
;
DTCH_UL_LCHAN_DESC
.
Delay_class
=
1
;
Rlc_info_um
.
rlc_mode
=
RLC_MODE_UM
;
Rlc_info_um
.
rlc
.
rlc_um_info
.
timer_reordering
=
5
;
Rlc_info_um
.
rlc
.
rlc_um_info
.
sn_field_length
=
10
;
Rlc_info_um
.
rlc
.
rlc_um_info
.
is_mXch
=
0
;
//Rlc_info_um.rlc.rlc_um_info.sdu_discard_mode=16;
Rlc_info_am_config
.
rlc_mode
=
RLC_MODE_AM
;
Rlc_info_am_config
.
rlc
.
rlc_am_info
.
max_retx_threshold
=
50
;
Rlc_info_am_config
.
rlc
.
rlc_am_info
.
poll_pdu
=
8
;
Rlc_info_am_config
.
rlc
.
rlc_am_info
.
poll_byte
=
1000
;
Rlc_info_am_config
.
rlc
.
rlc_am_info
.
t_poll_retransmit
=
15
;
Rlc_info_am_config
.
rlc
.
rlc_am_info
.
t_reordering
=
50
;
Rlc_info_am_config
.
rlc
.
rlc_am_info
.
t_status_prohibit
=
10
;
return
0
;
chan
->
transport_block_size
=
4
;
chan
->
max_transport_blocks
=
16
;
chan
->
Delay_class
=
1
;
return
;
}
//-----------------------------------------------------------------------------
...
...
openair2/RRC/NR/nr_rrc_extern.h
View file @
569b9fc5
...
...
@@ -51,13 +51,10 @@ extern unsigned char NB_eNB_INST;
extern
uint16_t
NB_UE_INST
;
extern
void
*
bigphys_malloc
(
int
);
//CONSTANTS
extern
rlc_info_t
Rlc_info_um
,
Rlc_info_am_config
;
//uint8_t RACH_TIME_ALLOC;
// CONSTANTS
// uint8_t RACH_TIME_ALLOC;
extern
uint16_t
RACH_FREQ_ALLOC
;
//uint8_t NB_RACH;
extern
LCHAN_DESC
BCCH_LCHAN_DESC
,
CCCH_LCHAN_DESC
,
DCCH_LCHAN_DESC
,
DTCH_DL_LCHAN_DESC
,
DTCH_UL_LCHAN_DESC
;
// uint8_t NB_RACH;
extern
MAC_MEAS_T
BCCH_MEAS_TRIGGER
,
CCCH_MEAS_TRIGGER
,
DCCH_MEAS_TRIGGER
,
DTCH_MEAS_TRIGGER
;
extern
MAC_AVG_T
BCCH_MEAS_AVG
,
CCCH_MEAS_AVG
,
DCCH_MEAS_AVG
,
DTCH_MEAS_AVG
;
...
...
@@ -75,7 +72,6 @@ extern UE_PF_PO_t UE_PF_PO[NFAPI_CC_MAX][MAX_MOBILES_PER_ENB];
extern
pthread_mutex_t
ue_pf_po_mutex
;
extern
uint16_t
reestablish_rnti_map
[
MAX_MOBILES_PER_ENB
][
2
];
char
openair_rrc_gNB_configuration
(
const
module_id_t
gnb_mod_idP
,
gNB_RrcConfigurationReq
*
configuration
);
#endif
...
...
openair2/RRC/NR/nr_rrc_proto.h
View file @
569b9fc5
...
...
@@ -44,12 +44,7 @@
#include "NR_SecurityConfig.h"
#define NR_MAX_SUPPORTED_DL_LAYERS 2
int
rrc_init_nr_global_param
(
void
);
void
rrc_config_nr_buffer
(
NR_SRB_INFO
*
Srb_info
,
uint8_t
Lchan_type
,
uint8_t
Role
);
void
rrc_init_nr_srb_param
(
NR_LCHAN_DESC
*
chan
);
uint16_t
mac_rrc_nr_data_req
(
const
module_id_t
Mod_idP
,
const
int
CC_id
,
...
...
@@ -104,18 +99,6 @@ int generate_CG_Config(gNB_RRC_INST *rrc,
NR_RRCReconfiguration_t
*
reconfig
,
NR_RadioBearerConfig_t
*
rbconfig
);
void
apply_macrlc_config
(
gNB_RRC_INST
*
rrc
,
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
const
protocol_ctxt_t
*
const
ctxt_pP
);
void
rrc_gNB_generate_RRCSetup
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
const
uint8_t
*
masterCellGroup
,
int
masterCellGroup_len
,
NR_ServingCellConfigCommon_t
*
scc
);
int
parse_CG_ConfigInfo
(
gNB_RRC_INST
*
rrc
,
NR_CG_ConfigInfo_t
*
CG_ConfigInfo
,
x2ap_ENDC_sgnb_addition_req_t
*
m
);
void
...
...
@@ -124,10 +107,7 @@ rrc_gNB_generate_SecurityModeCommand(
rrc_gNB_ue_context_t
*
const
ue_context_pP
);
uint8_t
rrc_gNB_get_next_transaction_identifier
(
module_id_t
gnb_mod_idP
);
unsigned
int
rrc_gNB_get_next_transaction_identifier
(
module_id_t
gnb_mod_idP
);
void
rrc_gNB_generate_UECapabilityEnquiry
(
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
569b9fc5
This diff is collapsed.
Click to expand it.
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