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
c5b99629
Commit
c5b99629
authored
May 26, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary dl_rrc_message_transfer_direct()
parent
97b65555
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
19 deletions
+12
-19
openair2/F1AP/f1ap_du_rrc_message_transfer.c
openair2/F1AP/f1ap_du_rrc_message_transfer.c
+1
-1
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
+2
-2
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.h
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.h
+1
-1
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
+1
-1
openair2/RRC/NR/mac_rrc_dl.h
openair2/RRC/NR/mac_rrc_dl.h
+1
-1
openair2/RRC/NR/mac_rrc_dl_direct.c
openair2/RRC/NR/mac_rrc_dl_direct.c
+1
-8
openair2/RRC/NR/mac_rrc_dl_f1ap.c
openair2/RRC/NR/mac_rrc_dl_f1ap.c
+2
-2
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+3
-3
No files found.
openair2/F1AP/f1ap_du_rrc_message_transfer.c
View file @
c5b99629
...
@@ -140,7 +140,7 @@ int DU_handle_DL_RRC_MESSAGE_TRANSFER(instance_t instance,
...
@@ -140,7 +140,7 @@ int DU_handle_DL_RRC_MESSAGE_TRANSFER(instance_t instance,
.
rnti
=
f1ap_get_rnti_by_du_id
(
DUtype
,
instance
,
du_ue_f1ap_id
),
.
rnti
=
f1ap_get_rnti_by_du_id
(
DUtype
,
instance
,
du_ue_f1ap_id
),
.
srb_id
=
srb_id
.
srb_id
=
srb_id
};
};
dl_rrc_message
(
instance
,
&
dl_rrc
);
dl_rrc_message
_transfer
(
&
dl_rrc
);
return
0
;
return
0
;
}
}
...
...
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.c
View file @
c5b99629
...
@@ -268,10 +268,10 @@ void ue_context_release_command(const f1ap_ue_context_release_cmd_t *cmd)
...
@@ -268,10 +268,10 @@ void ue_context_release_command(const f1ap_ue_context_release_cmd_t *cmd)
mac
->
mac_rrc
.
ue_context_release_complete
(
&
complete
);
mac
->
mac_rrc
.
ue_context_release_complete
(
&
complete
);
}
}
int
dl_rrc_message
(
module_id_t
module_id
,
const
f1ap_dl_rrc_message_t
*
dl_rrc
)
void
dl_rrc_message_transfer
(
const
f1ap_dl_rrc_message_t
*
dl_rrc
)
{
{
LOG_D
(
NR_MAC
,
"DL RRC Message Transfer with %d bytes for RNTI %04x SRB %d
\n
"
,
dl_rrc
->
rrc_container_length
,
dl_rrc
->
rnti
,
dl_rrc
->
srb_id
);
LOG_D
(
NR_MAC
,
"DL RRC Message Transfer with %d bytes for RNTI %04x SRB %d
\n
"
,
dl_rrc
->
rrc_container_length
,
dl_rrc
->
rnti
,
dl_rrc
->
srb_id
);
/* the DU ue id is the RNTI */
nr_rlc_srb_recv_sdu
(
dl_rrc
->
rnti
,
dl_rrc
->
srb_id
,
dl_rrc
->
rrc_container
,
dl_rrc
->
rrc_container_length
);
nr_rlc_srb_recv_sdu
(
dl_rrc
->
rnti
,
dl_rrc
->
srb_id
,
dl_rrc
->
rrc_container
,
dl_rrc
->
rrc_container_length
);
return
0
;
}
}
openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.h
View file @
c5b99629
...
@@ -29,6 +29,6 @@ void ue_context_setup_request(const f1ap_ue_context_setup_t *req);
...
@@ -29,6 +29,6 @@ void ue_context_setup_request(const f1ap_ue_context_setup_t *req);
void
ue_context_modification_request
(
const
f1ap_ue_context_modif_req_t
*
req
);
void
ue_context_modification_request
(
const
f1ap_ue_context_modif_req_t
*
req
);
void
ue_context_release_command
(
const
f1ap_ue_context_release_cmd_t
*
cmd
);
void
ue_context_release_command
(
const
f1ap_ue_context_release_cmd_t
*
cmd
);
int
dl_rrc_message
(
module_id_t
module_id
,
const
f1ap_dl_rrc_message_t
*
dl_rrc
);
void
dl_rrc_message_transfer
(
const
f1ap_dl_rrc_message_t
*
dl_rrc
);
#endif
/* MAC_RRC_DL_HANDLER_H */
#endif
/* MAC_RRC_DL_HANDLER_H */
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
View file @
c5b99629
...
@@ -750,7 +750,7 @@ void deliver_pdu_srb_f1(void *deliver_pdu_data, ue_id_t ue_id, int srb_id,
...
@@ -750,7 +750,7 @@ void deliver_pdu_srb_f1(void *deliver_pdu_data, ue_id_t ue_id, int srb_id,
.
rrc_container_length
=
size
,
.
rrc_container_length
=
size
,
.
rnti
=
ue_id
,
.
rnti
=
ue_id
,
.
srb_id
=
srb_id
};
.
srb_id
=
srb_id
};
rrc
->
mac_rrc
.
dl_rrc_message_transfer
(
0
,
&
dl_rrc
);
rrc
->
mac_rrc
.
dl_rrc_message_transfer
(
&
dl_rrc
);
}
}
static
void
add_srb
(
int
is_gnb
,
ue_id_t
rntiMaybeUEid
,
struct
NR_SRB_ToAddMod
*
s
,
int
ciphering_algorithm
,
int
integrity_algorithm
,
unsigned
char
*
ciphering_key
,
unsigned
char
*
integrity_key
)
static
void
add_srb
(
int
is_gnb
,
ue_id_t
rntiMaybeUEid
,
struct
NR_SRB_ToAddMod
*
s
,
int
ciphering_algorithm
,
int
integrity_algorithm
,
unsigned
char
*
ciphering_key
,
unsigned
char
*
integrity_key
)
...
...
openair2/RRC/NR/mac_rrc_dl.h
View file @
c5b99629
...
@@ -29,7 +29,7 @@ typedef void (*ue_context_setup_request_func_t)(const f1ap_ue_context_setup_t *r
...
@@ -29,7 +29,7 @@ typedef void (*ue_context_setup_request_func_t)(const f1ap_ue_context_setup_t *r
typedef
void
(
*
ue_context_modification_request_func_t
)(
const
f1ap_ue_context_modif_req_t
*
req
);
typedef
void
(
*
ue_context_modification_request_func_t
)(
const
f1ap_ue_context_modif_req_t
*
req
);
typedef
void
(
*
ue_context_release_command_func_t
)(
const
f1ap_ue_context_release_cmd_t
*
cmd
);
typedef
void
(
*
ue_context_release_command_func_t
)(
const
f1ap_ue_context_release_cmd_t
*
cmd
);
typedef
void
(
*
dl_rrc_message_transfer_func_t
)(
module_id_t
module_id
,
const
f1ap_dl_rrc_message_t
*
dl_rrc
);
typedef
void
(
*
dl_rrc_message_transfer_func_t
)(
const
f1ap_dl_rrc_message_t
*
dl_rrc
);
struct
nr_mac_rrc_dl_if_s
;
struct
nr_mac_rrc_dl_if_s
;
void
mac_rrc_dl_direct_init
(
struct
nr_mac_rrc_dl_if_s
*
mac_rrc
);
void
mac_rrc_dl_direct_init
(
struct
nr_mac_rrc_dl_if_s
*
mac_rrc
);
...
...
openair2/RRC/NR/mac_rrc_dl_direct.c
View file @
c5b99629
...
@@ -24,17 +24,10 @@
...
@@ -24,17 +24,10 @@
#include "mac_rrc_dl.h"
#include "mac_rrc_dl.h"
#include "openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.h"
#include "openair2/LAYER2/NR_MAC_gNB/mac_rrc_dl_handler.h"
static
void
dl_rrc_message_transfer_direct
(
module_id_t
module_id
,
const
f1ap_dl_rrc_message_t
*
dl_rrc
)
{
/* TODO how to manage inter-thread communication? */
dl_rrc_message
(
module_id
,
dl_rrc
);
}
void
mac_rrc_dl_direct_init
(
nr_mac_rrc_dl_if_t
*
mac_rrc
)
void
mac_rrc_dl_direct_init
(
nr_mac_rrc_dl_if_t
*
mac_rrc
)
{
{
mac_rrc
->
ue_context_setup_request
=
ue_context_setup_request
;
mac_rrc
->
ue_context_setup_request
=
ue_context_setup_request
;
mac_rrc
->
ue_context_modification_request
=
ue_context_modification_request
;
mac_rrc
->
ue_context_modification_request
=
ue_context_modification_request
;
mac_rrc
->
ue_context_release_command
=
ue_context_release_command
;
mac_rrc
->
ue_context_release_command
=
ue_context_release_command
;
mac_rrc
->
dl_rrc_message_transfer
=
dl_rrc_message_transfer
_direct
;
mac_rrc
->
dl_rrc_message_transfer
=
dl_rrc_message_transfer
;
}
}
openair2/RRC/NR/mac_rrc_dl_f1ap.c
View file @
c5b99629
...
@@ -85,7 +85,7 @@ static void ue_context_release_command_f1ap(const f1ap_ue_context_release_cmd_t
...
@@ -85,7 +85,7 @@ static void ue_context_release_command_f1ap(const f1ap_ue_context_release_cmd_t
itti_send_msg_to_task
(
TASK_CU_F1
,
0
,
message_p
);
itti_send_msg_to_task
(
TASK_CU_F1
,
0
,
message_p
);
}
}
static
void
dl_rrc_message_transfer_f1ap
(
module_id_t
module_id
,
const
f1ap_dl_rrc_message_t
*
dl_rrc
)
static
void
dl_rrc_message_transfer_f1ap
(
const
f1ap_dl_rrc_message_t
*
dl_rrc
)
{
{
/* TODO call F1AP function directly? no real-time constraint here */
/* TODO call F1AP function directly? no real-time constraint here */
...
@@ -98,7 +98,7 @@ static void dl_rrc_message_transfer_f1ap(module_id_t module_id, const f1ap_dl_rr
...
@@ -98,7 +98,7 @@ static void dl_rrc_message_transfer_f1ap(module_id_t module_id, const f1ap_dl_rr
msg
->
rrc_container_length
=
dl_rrc
->
rrc_container_length
;
msg
->
rrc_container_length
=
dl_rrc
->
rrc_container_length
;
memcpy
(
msg
->
rrc_container
,
dl_rrc
->
rrc_container
,
dl_rrc
->
rrc_container_length
);
memcpy
(
msg
->
rrc_container
,
dl_rrc
->
rrc_container
,
dl_rrc
->
rrc_container_length
);
}
}
itti_send_msg_to_task
(
TASK_CU_F1
,
module_id
,
message_p
);
itti_send_msg_to_task
(
TASK_CU_F1
,
0
,
message_p
);
}
}
void
mac_rrc_dl_f1ap_init
(
nr_mac_rrc_dl_if_t
*
mac_rrc
)
void
mac_rrc_dl_f1ap_init
(
nr_mac_rrc_dl_if_t
*
mac_rrc
)
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
c5b99629
...
@@ -476,7 +476,7 @@ static void rrc_gNB_generate_RRCSetup(instance_t instance,
...
@@ -476,7 +476,7 @@ static void rrc_gNB_generate_RRCSetup(instance_t instance,
.
rnti
=
ue_p
->
rnti
,
.
rnti
=
ue_p
->
rnti
,
.
srb_id
=
CCCH
.
srb_id
=
CCCH
};
};
rrc
->
mac_rrc
.
dl_rrc_message_transfer
(
instance
,
&
dl_rrc
);
rrc
->
mac_rrc
.
dl_rrc_message_transfer
(
&
dl_rrc
);
}
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
...
@@ -532,7 +532,7 @@ static int rrc_gNB_generate_RRCSetup_for_RRCReestablishmentRequest(module_id_t m
...
@@ -532,7 +532,7 @@ static int rrc_gNB_generate_RRCSetup_for_RRCReestablishmentRequest(module_id_t m
.
rnti
=
ue_p
->
rnti
,
.
rnti
=
ue_p
->
rnti
,
.
srb_id
=
CCCH
.
srb_id
=
CCCH
};
};
rrc_instance_p
->
mac_rrc
.
dl_rrc_message_transfer
(
module_id
,
&
dl_rrc
);
rrc_instance_p
->
mac_rrc
.
dl_rrc_message_transfer
(
&
dl_rrc
);
return
xid
;
return
xid
;
}
}
...
@@ -565,7 +565,7 @@ static void rrc_gNB_generate_RRCReject(module_id_t module_id, rrc_gNB_ue_context
...
@@ -565,7 +565,7 @@ static void rrc_gNB_generate_RRCReject(module_id_t module_id, rrc_gNB_ue_context
.
execute_duplication
=
1
,
.
execute_duplication
=
1
,
.
RAT_frequency_priority_information
.
en_dc
=
0
.
RAT_frequency_priority_information
.
en_dc
=
0
};
};
rrc
->
mac_rrc
.
dl_rrc_message_transfer
(
module_id
,
&
dl_rrc
);
rrc
->
mac_rrc
.
dl_rrc_message_transfer
(
&
dl_rrc
);
}
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
...
...
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