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
e7eb1b1c
Commit
e7eb1b1c
authored
Jun 05, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store DRB UL TEID information at RRC
To be used later in the case of handover.
parent
605dfa01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
openair2/RRC/NR/nr_rrc_defs.h
openair2/RRC/NR/nr_rrc_defs.h
+2
-0
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+19
-0
No files found.
openair2/RRC/NR/nr_rrc_defs.h
View file @
e7eb1b1c
...
...
@@ -205,6 +205,8 @@ typedef struct drb_s {
}
pdcp_config
;
// F1-U Downlink Tunnel Config (on DU side)
f1u_tunnel_t
du_tunnel_config
;
// F1-U Uplink Tunnel Config (on CU-UP side)
f1u_tunnel_t
cuup_tunnel_config
;
}
drb_t
;
typedef
enum
{
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
e7eb1b1c
...
...
@@ -1889,6 +1889,16 @@ static void store_du_f1u_tunnel(const f1ap_drb_to_be_setup_t *drbs, int n, gNB_R
}
}
/*
* @brief Store F1-U UL TEID and address in RRC
*/
static
void
f1u_ul_gtp_update
(
f1u_tunnel_t
*
f1u
,
const
up_params_t
*
p
)
{
f1u
->
teid
=
p
->
teId
;
memcpy
(
&
f1u
->
addr
.
buffer
,
&
p
->
tlAddress
,
sizeof
(
uint8_t
)
*
4
);
f1u
->
addr
.
length
=
sizeof
(
in_addr_t
);
}
/* \brief use list of DRBs and send the corresponding bearer update message via
* E1 to the CU of this UE. Also updates TEID info internally */
static
void
e1_send_bearer_updates
(
gNB_RRC_INST
*
rrc
,
gNB_RRC_UE_t
*
UE
,
int
n
,
f1ap_drb_to_be_setup_t
*
drbs
)
...
...
@@ -2165,6 +2175,15 @@ void rrc_gNB_process_e1_bearer_context_setup_resp(e1ap_bearer_setup_resp_t *resp
rrc_pdu
->
param
.
gNB_teid_N3
=
e1_pdu
->
teId
;
memcpy
(
&
rrc_pdu
->
param
.
gNB_addr_N3
.
buffer
,
&
e1_pdu
->
tlAddress
,
sizeof
(
uint8_t
)
*
4
);
rrc_pdu
->
param
.
gNB_addr_N3
.
length
=
sizeof
(
in_addr_t
);
// save the tunnel address for the DRBs
for
(
int
i
=
0
;
i
<
e1_pdu
->
numDRBSetup
;
i
++
)
{
DRB_nGRAN_setup_t
*
drb_config
=
&
e1_pdu
->
DRBnGRanList
[
i
];
// numUpParam only relevant in F1, but not monolithic
AssertFatal
(
drb_config
->
numUpParam
<=
1
,
"can only up to one UP param
\n
"
);
drb_t
*
drb
=
get_drb
(
UE
,
drb_config
->
id
);
f1u_ul_gtp_update
(
&
drb
->
cuup_tunnel_config
,
&
drb_config
->
UpParamList
[
0
]);
}
}
/* Instruction towards the DU for DRB configuration and tunnel creation */
...
...
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