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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
4c9ed9d7
Commit
4c9ed9d7
authored
Feb 10, 2025
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use (CU-initiated) F1 Reset in stack
parent
9157e22c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
4 deletions
+36
-4
openair2/F1AP/f1ap_cu_interface_management.c
openair2/F1AP/f1ap_cu_interface_management.c
+22
-0
openair2/F1AP/f1ap_cu_interface_management.h
openair2/F1AP/f1ap_cu_interface_management.h
+1
-0
openair2/F1AP/f1ap_cu_task.c
openair2/F1AP/f1ap_cu_task.c
+6
-0
openair2/RRC/NR/mac_rrc_dl_direct.c
openair2/RRC/NR/mac_rrc_dl_direct.c
+2
-2
openair2/RRC/NR/mac_rrc_dl_f1ap.c
openair2/RRC/NR/mac_rrc_dl_f1ap.c
+5
-2
No files found.
openair2/F1AP/f1ap_cu_interface_management.c
View file @
4c9ed9d7
...
@@ -47,6 +47,28 @@ int CU_send_RESET_ACKNOWLEDGE(sctp_assoc_t assoc_id, const f1ap_reset_ack_t *ack
...
@@ -47,6 +47,28 @@ int CU_send_RESET_ACKNOWLEDGE(sctp_assoc_t assoc_id, const f1ap_reset_ack_t *ack
AssertFatal
(
1
==
0
,
"Not implemented yet
\n
"
);
AssertFatal
(
1
==
0
,
"Not implemented yet
\n
"
);
}
}
void
CU_send_RESET
(
sctp_assoc_t
assoc_id
,
const
f1ap_reset_t
*
reset
)
{
uint8_t
*
buffer
=
NULL
;
uint32_t
len
=
0
;
/* Encode F1 Reset */
F1AP_F1AP_PDU_t
*
pdu
=
encode_f1ap_reset
(
reset
);
if
(
pdu
==
NULL
)
{
LOG_E
(
F1AP
,
"failed to create asn.1 message for f1ap reset
\n
"
);
return
;
}
/* encode ASN.1 PER */
int
encoded
=
f1ap_encode_pdu
(
pdu
,
&
buffer
,
&
len
);
ASN_STRUCT_FREE
(
asn_DEF_F1AP_F1AP_PDU
,
pdu
);
if
(
encoded
<=
0
)
{
LOG_E
(
F1AP
,
"Failed to encode F1 reset
\n
"
);
return
;
}
f1ap_itti_send_sctp_data_req
(
assoc_id
,
buffer
,
len
);
}
/**
/**
* @brief F1AP Setup Request decoding (9.2.1.4 of 3GPP TS 38.473) and transfer to RRC
* @brief F1AP Setup Request decoding (9.2.1.4 of 3GPP TS 38.473) and transfer to RRC
*/
*/
...
...
openair2/F1AP/f1ap_cu_interface_management.h
View file @
4c9ed9d7
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
/*
/*
* Reset
* Reset
*/
*/
void
CU_send_RESET
(
sctp_assoc_t
assoc_id
,
const
f1ap_reset_t
*
reset
);
int
CU_handle_RESET_ACKNOWLEDGE
(
instance_t
instance
,
sctp_assoc_t
assoc_id
,
uint32_t
stream
,
F1AP_F1AP_PDU_t
*
pdu
);
int
CU_handle_RESET_ACKNOWLEDGE
(
instance_t
instance
,
sctp_assoc_t
assoc_id
,
uint32_t
stream
,
F1AP_F1AP_PDU_t
*
pdu
);
int
CU_send_RESET_ACKNOWLEDGE
(
sctp_assoc_t
assoc_id
,
const
f1ap_reset_ack_t
*
ack
);
int
CU_send_RESET_ACKNOWLEDGE
(
sctp_assoc_t
assoc_id
,
const
f1ap_reset_ack_t
*
ack
);
...
...
openair2/F1AP/f1ap_cu_task.c
View file @
4c9ed9d7
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include "f1ap_cu_rrc_message_transfer.h"
#include "f1ap_cu_rrc_message_transfer.h"
#include "f1ap_cu_ue_context_management.h"
#include "f1ap_cu_ue_context_management.h"
#include "lib/f1ap_rrc_message_transfer.h"
#include "lib/f1ap_rrc_message_transfer.h"
#include "lib/f1ap_interface_management.h"
#include "f1ap_cu_paging.h"
#include "f1ap_cu_paging.h"
#include "f1ap_cu_task.h"
#include "f1ap_cu_task.h"
#include <openair3/ocp-gtpu/gtp_itf.h>
#include <openair3/ocp-gtpu/gtp_itf.h>
...
@@ -151,6 +152,11 @@ void *F1AP_CU_task(void *arg) {
...
@@ -151,6 +152,11 @@ void *F1AP_CU_task(void *arg) {
&
received_msg
->
ittiMsg
.
sctp_data_ind
);
&
received_msg
->
ittiMsg
.
sctp_data_ind
);
break
;
break
;
case
F1AP_RESET
:
CU_send_RESET
(
assoc_id
,
&
F1AP_RESET
(
received_msg
));
free_f1ap_reset
(
&
F1AP_RESET
(
received_msg
));
break
;
case
F1AP_RESET_ACK
:
case
F1AP_RESET_ACK
:
CU_send_RESET_ACKNOWLEDGE
(
assoc_id
,
&
F1AP_RESET_ACK
(
received_msg
));
CU_send_RESET_ACKNOWLEDGE
(
assoc_id
,
&
F1AP_RESET_ACK
(
received_msg
));
break
;
break
;
...
...
openair2/RRC/NR/mac_rrc_dl_direct.c
View file @
4c9ed9d7
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
static
void
f1_reset_cu_initiated_direct
(
sctp_assoc_t
assoc_id
,
const
f1ap_reset_t
*
reset
)
static
void
f1_reset_cu_initiated_direct
(
sctp_assoc_t
assoc_id
,
const
f1ap_reset_t
*
reset
)
{
{
(
void
)
reset
;
AssertFatal
(
assoc_id
==
-
1
,
"illegal assoc_id %d
\n
"
,
assoc_id
)
;
AssertFatal
(
false
,
"%s() not implemented yet
\n
"
,
__func__
);
f1_reset_cu_initiated
(
reset
);
}
}
static
void
f1_reset_acknowledge_du_initiated_direct
(
sctp_assoc_t
assoc_id
,
const
f1ap_reset_ack_t
*
ack
)
static
void
f1_reset_acknowledge_du_initiated_direct
(
sctp_assoc_t
assoc_id
,
const
f1ap_reset_ack_t
*
ack
)
...
...
openair2/RRC/NR/mac_rrc_dl_f1ap.c
View file @
4c9ed9d7
...
@@ -35,8 +35,11 @@
...
@@ -35,8 +35,11 @@
static
void
f1_reset_cu_initiated_f1ap
(
sctp_assoc_t
assoc_id
,
const
f1ap_reset_t
*
reset
)
static
void
f1_reset_cu_initiated_f1ap
(
sctp_assoc_t
assoc_id
,
const
f1ap_reset_t
*
reset
)
{
{
(
void
)
reset
;
MessageDef
*
msg
=
itti_alloc_new_message
(
TASK_RRC_GNB
,
0
,
F1AP_RESET
);
AssertFatal
(
false
,
"%s() not implemented yet
\n
"
,
__func__
);
msg
->
ittiMsgHeader
.
originInstance
=
assoc_id
;
f1ap_reset_t
*
f1ap_msg
=
&
F1AP_RESET
(
msg
);
*
f1ap_msg
=
cp_f1ap_reset
(
reset
);
itti_send_msg_to_task
(
TASK_CU_F1
,
0
,
msg
);
}
}
static
void
f1_reset_acknowledge_du_initiated_f1ap
(
sctp_assoc_t
assoc_id
,
const
f1ap_reset_ack_t
*
ack
)
static
void
f1_reset_acknowledge_du_initiated_f1ap
(
sctp_assoc_t
assoc_id
,
const
f1ap_reset_ack_t
*
ack
)
...
...
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