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
lizhongxiao
OpenXG-RAN
Commits
a47eab52
Commit
a47eab52
authored
Jan 26, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
F1 UE Ctxt modification: forward multiple PDU sessions, including NSSAI
parent
2800203e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
37 deletions
+44
-37
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+44
-37
No files found.
openair2/RRC/NR/rrc_gNB.c
View file @
a47eab52
...
@@ -1998,45 +1998,52 @@ void rrc_gNB_process_e1_bearer_context_setup_resp(e1ap_bearer_setup_resp_t *resp
...
@@ -1998,45 +1998,52 @@ void rrc_gNB_process_e1_bearer_context_setup_resp(e1ap_bearer_setup_resp_t *resp
}
}
/* Instruction towards the DU for DRB configuration and tunnel creation */
/* Instruction towards the DU for DRB configuration and tunnel creation */
int
nb_drb
=
resp
->
pduSession
[
0
].
numDRBSetup
;
f1ap_drb_to_be_setup_t
drbs
[
32
];
// maximum DRB can be 32
f1ap_drb_to_be_setup_t
drbs
[
nb_drb
];
int
nb_drb
=
0
;
rrc_pdu_session_param_t
*
RRC_pduSession
=
find_pduSession
(
UE
,
resp
->
pduSession
[
0
].
id
,
false
);
for
(
int
p
=
0
;
p
<
resp
->
numPDUSessions
;
++
p
)
{
DevAssert
(
RRC_pduSession
);
rrc_pdu_session_param_t
*
RRC_pduSession
=
find_pduSession
(
UE
,
resp
->
pduSession
[
p
].
id
,
false
);
for
(
int
i
=
0
;
i
<
nb_drb
;
i
++
)
{
DevAssert
(
RRC_pduSession
);
DRB_nGRAN_setup_t
*
drb_config
=
&
resp
->
pduSession
[
0
].
DRBnGRanList
[
i
];
for
(
int
i
=
0
;
i
<
resp
->
pduSession
[
p
].
numDRBSetup
;
i
++
)
{
drbs
[
i
].
drb_id
=
resp
->
pduSession
[
0
].
DRBnGRanList
[
i
].
id
;
DRB_nGRAN_setup_t
*
drb_config
=
&
resp
->
pduSession
[
p
].
DRBnGRanList
[
i
];
drbs
[
i
].
rlc_mode
=
rrc
->
configuration
.
um_on_default_drb
?
RLC_MODE_UM
:
RLC_MODE_AM
;
f1ap_drb_to_be_setup_t
*
drb
=
&
drbs
[
nb_drb
];
drbs
[
i
].
up_ul_tnl
[
0
].
tl_address
=
drb_config
->
UpParamList
[
0
].
tlAddress
;
drb
->
drb_id
=
resp
->
pduSession
[
p
].
DRBnGRanList
[
i
].
id
;
drbs
[
i
].
up_ul_tnl
[
0
].
port
=
rrc
->
eth_params_s
.
my_portd
;
drb
->
rlc_mode
=
rrc
->
configuration
.
um_on_default_drb
?
RLC_MODE_UM
:
RLC_MODE_AM
;
drbs
[
i
].
up_ul_tnl
[
0
].
teid
=
drb_config
->
UpParamList
[
0
].
teId
;
drb
->
up_ul_tnl
[
0
].
tl_address
=
drb_config
->
UpParamList
[
0
].
tlAddress
;
drbs
[
i
].
up_ul_tnl_length
=
1
;
drb
->
up_ul_tnl
[
0
].
port
=
rrc
->
eth_params_s
.
my_portd
;
drb
->
up_ul_tnl
[
0
].
teid
=
drb_config
->
UpParamList
[
0
].
teId
;
/* pass QoS info to MAC */
drb
->
up_ul_tnl_length
=
1
;
int
nb_qos_flows
=
drb_config
->
numQosFlowSetup
;
AssertFatal
(
nb_qos_flows
>
0
,
"must map at least one flow to a DRB
\n
"
);
drb
->
nssai
=
RRC_pduSession
->
param
.
nssai
;
drbs
[
i
].
drb_info
.
flows_to_be_setup_length
=
nb_qos_flows
;
drbs
[
i
].
drb_info
.
flows_mapped_to_drb
=
(
f1ap_flows_mapped_to_drb_t
*
)
calloc
(
nb_qos_flows
,
sizeof
(
f1ap_flows_mapped_to_drb_t
));
/* pass QoS info to MAC */
AssertFatal
(
drbs
[
i
].
drb_info
.
flows_mapped_to_drb
,
"could not allocate memory
\n
"
);
int
nb_qos_flows
=
drb_config
->
numQosFlowSetup
;
for
(
int
j
=
0
;
j
<
nb_qos_flows
;
j
++
)
{
AssertFatal
(
nb_qos_flows
>
0
,
"must map at least one flow to a DRB
\n
"
);
drbs
[
i
].
drb_info
.
flows_mapped_to_drb
[
j
].
qfi
=
drb_config
->
qosFlows
[
j
].
qfi
;
drb
->
drb_info
.
flows_to_be_setup_length
=
nb_qos_flows
;
drb
->
drb_info
.
flows_mapped_to_drb
=
calloc
(
nb_qos_flows
,
sizeof
(
f1ap_flows_mapped_to_drb_t
));
pdusession_level_qos_parameter_t
*
in_qos_char
=
get_qos_characteristics
(
drb_config
->
qosFlows
[
j
].
qfi
,
RRC_pduSession
);
AssertFatal
(
drb
->
drb_info
.
flows_mapped_to_drb
,
"could not allocate memory
\n
"
);
f1ap_qos_characteristics_t
*
qos_char
=
&
drbs
[
i
].
drb_info
.
flows_mapped_to_drb
[
j
].
qos_params
.
qos_characteristics
;
for
(
int
j
=
0
;
j
<
nb_qos_flows
;
j
++
)
{
if
(
in_qos_char
->
fiveQI_type
==
dynamic
)
{
drb
->
drb_info
.
flows_mapped_to_drb
[
j
].
qfi
=
drb_config
->
qosFlows
[
j
].
qfi
;
qos_char
->
qos_type
=
dynamic
;
qos_char
->
dynamic
.
fiveqi
=
in_qos_char
->
fiveQI
;
pdusession_level_qos_parameter_t
*
in_qos_char
=
get_qos_characteristics
(
drb_config
->
qosFlows
[
j
].
qfi
,
RRC_pduSession
);
qos_char
->
dynamic
.
qos_priority_level
=
in_qos_char
->
qos_priority
;
f1ap_qos_characteristics_t
*
qos_char
=
&
drb
->
drb_info
.
flows_mapped_to_drb
[
j
].
qos_params
.
qos_characteristics
;
}
else
{
if
(
in_qos_char
->
fiveQI_type
==
dynamic
)
{
qos_char
->
qos_type
=
non_dynamic
;
qos_char
->
qos_type
=
dynamic
;
qos_char
->
non_dynamic
.
fiveqi
=
in_qos_char
->
fiveQI
;
qos_char
->
dynamic
.
fiveqi
=
in_qos_char
->
fiveQI
;
qos_char
->
non_dynamic
.
qos_priority_level
=
in_qos_char
->
qos_priority
;
qos_char
->
dynamic
.
qos_priority_level
=
in_qos_char
->
qos_priority
;
}
else
{
qos_char
->
qos_type
=
non_dynamic
;
qos_char
->
non_dynamic
.
fiveqi
=
in_qos_char
->
fiveQI
;
qos_char
->
non_dynamic
.
qos_priority_level
=
in_qos_char
->
qos_priority
;
}
}
}
}
/* the DRB QoS parameters: we just reuse the ones from the first flow */
/* the DRB QoS parameters: we just reuse the ones from the first flow */
drb
->
drb_info
.
drb_qos
=
drb
->
drb_info
.
flows_mapped_to_drb
[
0
].
qos_params
;
drbs
[
i
].
drb_info
.
drb_qos
=
drbs
[
i
].
drb_info
.
flows_mapped_to_drb
[
0
].
qos_params
;
/* pass NSSAI info to MAC */
drb
->
nssai
=
RRC_pduSession
->
param
.
nssai
;
/* pass NSSAI info to MAC */
nb_drb
++
;
drbs
[
i
].
nssai
=
RRC_pduSession
->
param
.
nssai
;
}
}
}
/* Instruction towards the DU for SRB2 configuration */
/* Instruction towards the DU for SRB2 configuration */
...
...
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