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
23a865db
Commit
23a865db
authored
May 21, 2024
by
Xin Zhe Khooi
Committed by
Robert Schmidt
Jul 26, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement DU F1 Reset handlers
parent
a92ab368
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
4 deletions
+40
-4
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
+36
-2
openair2/LAYER2/NR_MAC_gNB/mac_rrc_ul_f1ap.c
openair2/LAYER2/NR_MAC_gNB/mac_rrc_ul_f1ap.c
+4
-2
No files found.
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
View file @
23a865db
...
...
@@ -95,10 +95,44 @@ static bool check_plmn_identity(const f1ap_plmn_t *check_plmn, const f1ap_plmn_t
return
plmn
->
mcc
==
check_plmn
->
mcc
&&
plmn
->
mnc_digit_length
==
check_plmn
->
mnc_digit_length
&&
plmn
->
mnc
==
check_plmn
->
mnc
;
}
static
void
du_clear_all_ue_states
()
{
gNB_MAC_INST
*
mac
=
RC
.
nrmac
[
0
];
NR_SCHED_LOCK
(
&
mac
->
sched_lock
);
NR_UE_info_t
*
UE
=
*
mac
->
UE_info
.
list
;
instance_t
f1inst
=
get_f1_gtp_instance
();
while
(
UE
!=
NULL
)
{
int
rnti
=
UE
->
rnti
;
nr_mac_release_ue
(
mac
,
rnti
);
// free all F1 contexts
if
(
du_exists_f1_ue_data
(
rnti
))
du_remove_f1_ue_data
(
rnti
);
newGtpuDeleteAllTunnels
(
f1inst
,
rnti
);
UE
=
*
mac
->
UE_info
.
list
;
}
NR_SCHED_UNLOCK
(
&
mac
->
sched_lock
);
}
void
f1_reset_cu_initiated
(
const
f1ap_reset_t
*
reset
)
{
(
void
)
reset
;
AssertFatal
(
false
,
"%s() not implemented yet
\n
"
,
__func__
);
LOG_I
(
MAC
,
"F1 Reset initiated by CU
\n
"
);
f1ap_reset_ack_t
ack
=
{
0
};
if
(
reset
->
reset_type
==
F1AP_RESET_ALL
)
{
du_clear_all_ue_states
();
ack
=
(
f1ap_reset_ack_t
)
{
.
transaction_id
=
reset
->
transaction_id
};
}
else
{
// reset->reset_type == F1AP_RESET_PART_OF_F1_INTERFACE
AssertFatal
(
1
==
0
,
"Not implemented yet
\n
"
);
}
gNB_MAC_INST
*
mac
=
RC
.
nrmac
[
0
];
mac
->
mac_rrc
.
f1_reset_acknowledge
(
&
ack
);
}
void
f1_reset_acknowledge_du_initiated
(
const
f1ap_reset_ack_t
*
ack
)
...
...
openair2/LAYER2/NR_MAC_gNB/mac_rrc_ul_f1ap.c
View file @
23a865db
...
...
@@ -61,8 +61,10 @@ static void f1_reset_du_initiated_f1ap(const f1ap_reset_t *reset)
static
void
f1_reset_acknowledge_cu_initiated_f1ap
(
const
f1ap_reset_ack_t
*
ack
)
{
(
void
)
ack
;
AssertFatal
(
false
,
"%s() not implemented yet
\n
"
,
__func__
);
MessageDef
*
msg
=
itti_alloc_new_message
(
TASK_MAC_GNB
,
0
,
F1AP_RESET_ACK
);
f1ap_reset_ack_t
*
f1ap_msg
=
&
F1AP_RESET_ACK
(
msg
);
*
f1ap_msg
=
*
ack
;
itti_send_msg_to_task
(
TASK_DU_F1
,
0
,
msg
);
}
static
void
f1_setup_request_f1ap
(
const
f1ap_setup_req_t
*
req
)
...
...
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