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
wangjie
OpenXG-RAN
Commits
458f8aae
Commit
458f8aae
authored
Mar 15, 2021
by
Xue Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify ocp_gtpv1u_update_ngu_tunnel
parent
b3f46402
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
openair3/ocp-gtpu/gtp_itf.cpp
openair3/ocp-gtpu/gtp_itf.cpp
+8
-1
No files found.
openair3/ocp-gtpu/gtp_itf.cpp
View file @
458f8aae
...
...
@@ -394,6 +394,7 @@ teid_t newGtpuCreateTunnel(instance_t instance, rnti_t rnti, int bearer_id, teid
tmp
->
teid_incoming
=
s1u_teid
;
tmp
->
outgoing_port
=
port
;
tmp
->
teid_outgoing
=
teid
;
pthread_mutex_unlock
(
&
globGtp
.
gtp_lock
);
return
s1u_teid
;
}
...
...
@@ -753,12 +754,18 @@ int ocp_gtpv1u_update_ngu_tunnel(
auto
inst
=&
globGtp
.
instances
[
compatInst
(
instance
)];
if
(
inst
->
ue2te_mapping
.
find
(
create_tunnel_req
->
rnti
)
==
inst
->
ue2te_mapping
.
end
()
)
{
LOG_E
(
GTPU
,
"
Update not already existing tunnel (new rnti %x, old rnti %x
)
\n
"
,
create_tunnel_req
->
rnti
,
prior_rnti
);
LOG_E
(
GTPU
,
"
no tunnel found (new rnti %x, old rnti %x,
)
\n
"
,
create_tunnel_req
->
rnti
,
prior_rnti
);
}
auto
it
=
inst
->
ue2te_mapping
.
find
(
prior_rnti
);
if
(
it
!=
inst
->
ue2te_mapping
.
end
()
)
{
auto
tmp
=&
it
->
second
.
bearers
[
create_tunnel_req
->
pdusession_id
[
0
]];
LOG_I
(
GTPU
,
"Update a existing tunnel, rnti %x, teid 0x%x, pdusession_id %d
\n
"
,
prior_rnti
,
tmp
->
teid_incoming
,
create_tunnel_req
->
pdusession_id
[
0
]);
}
else
{
LOG_W
(
GTPU
,
"Update a not existing tunnel, start create the new one (new rnti %x, old rnti %x)
\n
"
,
create_tunnel_req
->
rnti
,
prior_rnti
);
pthread_mutex_unlock
(
&
globGtp
.
gtp_lock
);
gtpv1u_gnb_create_tunnel_resp_t
tmp
;
...
...
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