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
zzha zzha
OpenXG-RAN
Commits
9622a56b
Commit
9622a56b
authored
May 10, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gNB RRC: handle F1AP_UL_RRC_MESSAGE
parent
18a68387
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
36 deletions
+36
-36
common/utils/ocp_itti/intertask_interface.h
common/utils/ocp_itti/intertask_interface.h
+1
-0
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
+24
-21
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+11
-15
No files found.
common/utils/ocp_itti/intertask_interface.h
View file @
9622a56b
...
...
@@ -308,6 +308,7 @@ void *rrc_enb_process_msg(void *);
TASK_DEF(TASK_RLC_ENB, TASK_PRIORITY_MED, 200, NULL, NULL) \
TASK_DEF(TASK_RRC_ENB_NB_IoT, TASK_PRIORITY_MED, 200, NULL, NULL) \
TASK_DEF(TASK_PDCP_ENB, TASK_PRIORITY_MED, 200, NULL, NULL) \
TASK_DEF(TASK_PDCP_GNB, TASK_PRIORITY_MED, 200, NULL, NULL) \
TASK_DEF(TASK_DATA_FORWARDING, TASK_PRIORITY_MED, 200, NULL, NULL) \
TASK_DEF(TASK_END_MARKER, TASK_PRIORITY_MED, 200, NULL, NULL) \
TASK_DEF(TASK_RRC_ENB, TASK_PRIORITY_MED, 200, NULL,NULL)\
...
...
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
View file @
9622a56b
...
...
@@ -734,26 +734,29 @@ static void deliver_sdu_srb(void *_ue, nr_pdcp_entity_t *entity,
__FILE__
,
__LINE__
,
__FUNCTION__
,
ue
->
rnti
);
exit
(
1
);
srb_found:
{
uint8_t
*
rrc_buffer_p
=
entity
->
is_gnb
?
itti_malloc
(
TASK_PDCP_ENB
,
TASK_RRC_GNB
,
size
)
:
itti_malloc
(
TASK_PDCP_UE
,
TASK_RRC_NRUE
,
size
);
MessageDef
*
message_p
;
AssertFatal
(
rrc_buffer_p
!=
NULL
,
"OUT OF MEMORY"
);
srb_found:
if
(
entity
->
is_gnb
)
{
MessageDef
*
message_p
=
itti_alloc_new_message
(
TASK_PDCP_GNB
,
0
,
F1AP_UL_RRC_MESSAGE
);
AssertFatal
(
message_p
!=
NULL
,
"OUT OF MEMORY
\n
"
);
f1ap_ul_rrc_message_t
*
ul_rrc
=
&
F1AP_UL_RRC_MESSAGE
(
message_p
);
ul_rrc
->
rnti
=
ue
->
rnti
;
ul_rrc
->
srb_id
=
srb_id
;
ul_rrc
->
rrc_container
=
malloc
(
size
);
AssertFatal
(
ul_rrc
->
rrc_container
!=
NULL
,
"OUT OF MEMORY
\n
"
);
memcpy
(
ul_rrc
->
rrc_container
,
buf
,
size
);
ul_rrc
->
rrc_container_length
=
size
;
itti_send_msg_to_task
(
TASK_RRC_GNB
,
0
,
message_p
);
}
else
{
uint8_t
*
rrc_buffer_p
=
itti_malloc
(
TASK_PDCP_UE
,
TASK_RRC_NRUE
,
size
);
AssertFatal
(
rrc_buffer_p
!=
NULL
,
"OUT OF MEMORY
\n
"
);
memcpy
(
rrc_buffer_p
,
buf
,
size
);
message_p
=
entity
->
is_gnb
?
itti_alloc_new_message
(
TASK_PDCP_ENB
,
0
,
NR_RRC_DCCH_DATA_IND
)
:
itti_alloc_new_message
(
TASK_PDCP_UE
,
0
,
NR_RRC_DCCH_DATA_IND
);
AssertFatal
(
message_p
!=
NULL
,
"OUT OF MEMORY"
);
MessageDef
*
message_p
=
itti_alloc_new_message
(
TASK_PDCP_UE
,
0
,
NR_RRC_DCCH_DATA_IND
);
AssertFatal
(
message_p
!=
NULL
,
"OUT OF MEMORY
\n
"
);
NR_RRC_DCCH_DATA_IND
(
message_p
).
dcch_index
=
srb_id
;
NR_RRC_DCCH_DATA_IND
(
message_p
).
sdu_p
=
rrc_buffer_p
;
NR_RRC_DCCH_DATA_IND
(
message_p
).
sdu_size
=
size
;
NR_RRC_DCCH_DATA_IND
(
message_p
).
rnti
=
ue
->
rnti
;
itti_send_msg_to_task
(
entity
->
is_gnb
?
TASK_RRC_GNB
:
TASK_RRC_NRUE
,
0
,
message_p
);
itti_send_msg_to_task
(
TASK_RRC_NRUE
,
0
,
message_p
);
}
}
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
9622a56b
...
...
@@ -3928,28 +3928,24 @@ void *rrc_gnb_task(void *args_p) {
break
;
/* Messages from PDCP */
case
NR_RRC_DCCH_DATA_IND
:
case
F1AP_UL_RRC_MESSAGE
:
PROTOCOL_CTXT_SET_BY_INSTANCE
(
&
ctxt
,
instance
,
GNB_FLAG_YES
,
NR_RRC_DCCH_DATA_IND
(
msg_p
).
rnti
,
msg_p
->
ittiMsgHeader
.
lte_time
.
frame
,
msg_p
->
ittiMsgHeader
.
lte_time
.
slot
);
LOG_D
(
NR_RRC
,
"Decoding DCCH : ue %d, inst %ld, ctxt %p, size %d
\n
"
,
F1AP_UL_RRC_MESSAGE
(
msg_p
).
rnti
,
0
,
0
);
LOG_D
(
NR_RRC
,
"Decoding DCCH %d: ue %04x, inst %ld, ctxt %p, size %d
\n
"
,
F1AP_UL_RRC_MESSAGE
(
msg_p
).
srb_id
,
ctxt
.
rnti
,
instance
,
&
ctxt
,
NR_RRC_DCCH_DATA_IND
(
msg_p
).
sdu_size
);
LOG_D
(
NR_RRC
,
PROTOCOL_NR_RRC_CTXT_UE_FMT
" Received on DCCH %d %s
\n
"
,
PROTOCOL_NR_RRC_CTXT_UE_ARGS
(
&
ctxt
),
NR_RRC_DCCH_DATA_IND
(
msg_p
).
dcch_index
,
msg_name_p
);
F1AP_UL_RRC_MESSAGE
(
msg_p
).
rrc_container_length
);
rrc_gNB_decode_dcch
(
&
ctxt
,
NR_RRC_DCCH_DATA_IND
(
msg_p
).
dcch_index
,
NR_RRC_DCCH_DATA_IND
(
msg_p
).
sdu_p
,
NR_RRC_DCCH_DATA_IND
(
msg_p
).
sdu_size
);
result
=
itti_free
(
ITTI_MSG_ORIGIN_ID
(
msg_p
),
NR_RRC_DCCH_DATA_IND
(
msg_p
).
sdu_p
);
F1AP_UL_RRC_MESSAGE
(
msg_p
).
srb_id
,
F1AP_UL_RRC_MESSAGE
(
msg_p
).
rrc_container
,
F1AP_UL_RRC_MESSAGE
(
msg_p
).
rrc_container_length
);
free
(
F1AP_UL_RRC_MESSAGE
(
msg_p
).
rrc_container
);
break
;
case
NGAP_DOWNLINK_NAS
:
...
...
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