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
67eadd4d
Commit
67eadd4d
authored
Jun 12, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add newGtpuDeleteOneTunnel() to remove one GTP tunnel
parent
6a076c84
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
0 deletions
+31
-0
openair2/F1AP/f1ap_cu_ue_context_management.c
openair2/F1AP/f1ap_cu_ue_context_management.c
+3
-0
openair2/F1AP/f1ap_du_ue_context_management.c
openair2/F1AP/f1ap_du_ue_context_management.c
+1
-0
openair3/ocp-gtpu/gtp_itf.cpp
openair3/ocp-gtpu/gtp_itf.cpp
+26
-0
openair3/ocp-gtpu/gtp_itf.h
openair3/ocp-gtpu/gtp_itf.h
+1
-0
No files found.
openair2/F1AP/f1ap_cu_ue_context_management.c
View file @
67eadd4d
...
...
@@ -1550,6 +1550,9 @@ int CU_send_UE_CONTEXT_MODIFICATION_REQUEST(instance_t instance, f1ap_ue_context
&
drbs_toBeReleased_item_ies
->
value
.
choice
.
DRBs_ToBeReleased_Item
;
/* dRBID */
drbs_toBeReleased_item
->
dRBID
=
f1ap_ue_context_modification_req
->
drbs_to_be_released
[
i
].
rb_id
;
newGtpuDeleteOneTunnel
(
getCxt
(
instance
)
->
gtpInst
,
f1ap_ue_context_modification_req
->
gNB_CU_ue_id
,
f1ap_ue_context_modification_req
->
drbs_to_be_released
[
i
].
rb_id
);
}
}
...
...
openair2/F1AP/f1ap_du_ue_context_management.c
View file @
67eadd4d
...
...
@@ -895,6 +895,7 @@ int DU_handle_UE_CONTEXT_MODIFICATION_REQUEST(instance_t instance, sctp_assoc_t
DevAssert
(
tbrel
->
id
==
F1AP_ProtocolIE_ID_id_DRBs_ToBeReleased_Item
);
DevAssert
(
tbrel
->
value
.
present
==
F1AP_DRBs_ToBeReleased_ItemIEs__value_PR_DRBs_ToBeReleased_Item
);
f1ap_ue_context_modification_req
->
drbs_to_be_released
[
i
].
rb_id
=
tbrel
->
value
.
choice
.
DRBs_ToBeReleased_Item
.
dRBID
;
newGtpuDeleteOneTunnel
(
0
,
f1ap_ue_context_modification_req
->
gNB_DU_ue_id
,
f1ap_ue_context_modification_req
->
drbs_to_be_released
[
i
].
rb_id
);
}
}
...
...
openair3/ocp-gtpu/gtp_itf.cpp
View file @
67eadd4d
...
...
@@ -803,6 +803,32 @@ int gtpv1u_create_x2u_tunnel(
AssertFatal
(
false
,
"to be developped
\n
"
);
}
int
newGtpuDeleteOneTunnel
(
instance_t
instance
,
ue_id_t
ue_id
,
int
rb_id
)
{
pthread_mutex_lock
(
&
globGtp
.
gtp_lock
);
getInstRetInt
(
compatInst
(
instance
));
map
<
uint64_t
,
teidData_t
>::
iterator
ue_it
=
inst
->
ue2te_mapping
.
find
(
ue_id
);
if
(
ue_it
==
inst
->
ue2te_mapping
.
end
())
{
LOG_E
(
GTPU
,
"%s() no such UE %ld
\n
"
,
__func__
,
ue_id
);
pthread_mutex_unlock
(
&
globGtp
.
gtp_lock
);
return
!
GTPNOK
;
}
map
<
ue_id_t
,
gtpv1u_bearer_t
>::
iterator
rb_it
=
ue_it
->
second
.
bearers
.
find
(
rb_id
);
if
(
rb_it
==
ue_it
->
second
.
bearers
.
end
())
{
LOG_E
(
GTPU
,
"%s() UE %ld has no bearer %d, available
\n
"
,
__func__
,
ue_id
,
rb_id
);
pthread_mutex_unlock
(
&
globGtp
.
gtp_lock
);
return
!
GTPNOK
;
}
int
teid
=
rb_it
->
second
.
teid_incoming
;
globGtp
.
te2ue_mapping
.
erase
(
teid
);
ue_it
->
second
.
bearers
.
erase
(
rb_id
);
pthread_mutex_unlock
(
&
globGtp
.
gtp_lock
);
LOG_I
(
GTPU
,
"Deleted tunnel TEID %d (RB %d) for ue id %ld, remaining bearers:
\n
"
,
teid
,
rb_id
,
ue_id
);
for
(
auto
b
:
ue_it
->
second
.
bearers
)
LOG_I
(
GTPU
,
"bearer %ld
\n
"
,
b
.
first
);
return
!
GTPNOK
;
}
int
newGtpuDeleteAllTunnels
(
instance_t
instance
,
ue_id_t
ue_id
)
{
LOG_D
(
GTPU
,
"[%ld] Start delete tunnels for ue id %lu
\n
"
,
instance
,
ue_id
);
...
...
openair3/ocp-gtpu/gtp_itf.h
View file @
67eadd4d
...
...
@@ -98,6 +98,7 @@ extern "C" {
in_addr_t
newOutgoingAddr
,
teid_t
newOutgoingTeid
);
int
newGtpuDeleteOneTunnel
(
instance_t
instance
,
ue_id_t
ue_id
,
int
rb_id
);
int
newGtpuDeleteAllTunnels
(
instance_t
instance
,
ue_id_t
ue_id
);
int
newGtpuDeleteTunnels
(
instance_t
instance
,
ue_id_t
ue_id
,
int
nbTunnels
,
pdusessionid_t
*
pdusession_id
);
instance_t
gtpv1Init
(
openAddr_t
context
);
...
...
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