Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OAI-RAN-5G-sheduler_MaxTBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MAQ5G-PFC
OAI-RAN-5G-sheduler_MaxTBS
Commits
a458ab17
Commit
a458ab17
authored
9 years ago
by
gauthier
Browse files
Options
Downloads
Patches
Plain Diff
hastables
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@7695
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
0a96b5a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openair-cn/SGW-LITE/sgw_lite_context_manager.c
+3
-3
3 additions, 3 deletions
openair-cn/SGW-LITE/sgw_lite_context_manager.c
openair-cn/SGW-LITE/sgw_lite_handlers.c
+26
-0
26 additions, 0 deletions
openair-cn/SGW-LITE/sgw_lite_handlers.c
with
29 additions
and
3 deletions
openair-cn/SGW-LITE/sgw_lite_context_manager.c
+
3
−
3
View file @
a458ab17
...
...
@@ -194,7 +194,7 @@ int sgw_lite_cm_remove_s11_tunnel(Teid_t local_teid)
{
int
temp
;
temp
=
hashtable_re
mov
e
(
sgw_app
.
s11teid2mme_hashtable
,
local_teid
);
temp
=
hashtable_
f
ree
(
sgw_app
.
s11teid2mme_hashtable
,
local_teid
);
return
temp
;
}
...
...
@@ -321,7 +321,7 @@ s_plus_p_gw_eps_bearer_context_information_t * sgw_lite_cm_create_bearer_context
int
sgw_lite_cm_remove_bearer_context_information
(
Teid_t
teid
)
{
int
temp
;
temp
=
hashtable_re
mov
e
(
sgw_app
.
s11_bearer_context_information_hashtable
,
teid
);
temp
=
hashtable_
f
ree
(
sgw_app
.
s11_bearer_context_information_hashtable
,
teid
);
return
temp
;
}
...
...
@@ -379,7 +379,7 @@ int sgw_lite_cm_remove_eps_bearer_entry(hash_table_t *eps_bearersP, ebi_t eps_be
return
-
1
;
}
temp
=
hashtable_re
mov
e
(
eps_bearersP
,
eps_bearer_idP
);
temp
=
hashtable_
f
ree
(
eps_bearersP
,
eps_bearer_idP
);
return
temp
;
}
...
...
This diff is collapsed.
Click to expand it.
openair-cn/SGW-LITE/sgw_lite_handlers.c
+
26
−
0
View file @
a458ab17
...
...
@@ -1178,7 +1178,26 @@ sgw_lite_handle_delete_session_request(
return
-
1
;
}
/*
* Callback of hashtable_apply_funct_on_elements()
*/
static
void
sgw_lite_release_all_enb_related_information
(
hash_key_t
keyP
,
void
*
dataP
,
void
*
parameterP
)
{
sgw_eps_bearer_entry_t
*
eps_bearer_entry_p
=
(
sgw_eps_bearer_entry_t
*
)
dataP
;
if
(
NULL
!=
eps_bearer_entry_p
)
{
memset
(
&
eps_bearer_entry_p
->
enb_ip_address_for_S1u
,
0
,
sizeof
(
eps_bearer_entry_p
->
enb_ip_address_for_S1u
));
eps_bearer_entry_p
->
enb_teid_for_S1u
=
0
;
}
}
/* From GPP TS 23.401 version 11.11.0 Release 11, section 5.3.5 S1 release procedure:
* The S-GW releases all eNodeB related information (address and TEIDs) for the UE and responds with a Release
* Access Bearers Response message to the MME. Other elements of the UE's S-GW context are not affected. The
* S-GW retains the S1-U configuration that the S-GW allocated for the UE's bearers. The S-GW starts buffering
* downlink packets received for the UE and initiating the "Network Triggered Service Request" procedure,
* described in clause 5.3.4.3, if downlink packets arrive for the UE.
*/
int
sgw_lite_handle_release_access_bearers_request
(
const
SgwReleaseAccessBearersRequest
*
const
release_access_bearers_req_pP
)
...
...
@@ -1211,7 +1230,14 @@ sgw_lite_handle_release_access_bearers_request(
release_access_bearers_resp_p
->
cause
=
REQUEST_ACCEPTED
;
release_access_bearers_resp_p
->
teid
=
ctx_p
->
sgw_eps_bearer_context_information
.
mme_teid_for_S11
;
#warning "TODO Here the release (sgw_lite_handle_release_access_bearers_request)"
hash_rc
=
hashtable_apply_funct_on_elements
(
ctx_p
->
sgw_eps_bearer_context_information
.
pdn_connection
.
sgw_eps_bearers
,
sgw_lite_release_all_enb_related_information
,
NULL
);
// TODO The S-GW starts buffering downlink packets received for the UE
// (set target on GTPUSP to order the buffering)
MSC_LOG_TX_MESSAGE
(
MSC_SP_GWAPP_MME
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment