Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
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
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-SMF
Commits
047abd75
Commit
047abd75
authored
May 22, 2019
by
gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean SPGWU hashtables on Sx delete session request
parent
a69056a0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
7 deletions
+26
-7
src/spgwu/simpleswitch/pfcp_switch.cpp
src/spgwu/simpleswitch/pfcp_switch.cpp
+23
-4
src/spgwu/simpleswitch/pfcp_switch.hpp
src/spgwu/simpleswitch/pfcp_switch.hpp
+3
-3
No files found.
src/spgwu/simpleswitch/pfcp_switch.cpp
View file @
047abd75
...
...
@@ -443,6 +443,12 @@ void pfcp_switch::add_pfcp_ul_pdr_by_up_teid(const teid_t teid, std::shared_ptr<
}
}
}
//------------------------------------------------------------------------------
void
pfcp_switch
::
remove_pfcp_ul_pdrs_by_up_teid
(
const
teid_t
teid
)
{
ul_s1u_teid2pfcp_pdr
.
erase
(
teid
);
}
//------------------------------------------------------------------------------
void
pfcp_switch
::
add_pfcp_dl_pdr_by_ue_ip
(
const
uint32_t
ue_ip
,
std
::
shared_ptr
<
pfcp
::
pfcp_pdr
>&
pdr
)
{
...
...
@@ -466,6 +472,11 @@ void pfcp_switch::add_pfcp_dl_pdr_by_ue_ip(const uint32_t ue_ip, std::shared_ptr
}
}
//------------------------------------------------------------------------------
void
pfcp_switch
::
remove_pfcp_dl_pdrs_by_ue_ip
(
const
uint32_t
ue_ip
)
{
ue_ipv4_hbo2pfcp_pdr
.
erase
(
ue_ip
);
}
//------------------------------------------------------------------------------
std
::
string
pfcp_switch
::
to_string
()
const
{
std
::
string
s
=
{};
...
...
@@ -789,16 +800,24 @@ void pfcp_switch::pfcp_session_look_up_pack_in_core(const char *buffer, const st
pfcp
::
far_id_t
far_id
=
{};
if
((
*
it
)
->
get
(
far_id
))
{
std
::
shared_ptr
<
pfcp
::
pfcp_far
>
sfar
=
{};
//Logger::pfcp_switch().trace( "pfcp_session_look_up_pack_in_core %d bytes, far id %08X", num_bytes, far_id);
#if TRACE_IS_ON
Logger
::
pfcp_switch
().
trace
(
"pfcp_session_look_up_pack_in_core %d bytes, far id %08X"
,
num_bytes
,
far_id
);
#endif
if
(
ssession
->
get
(
far_id
.
far_id
,
sfar
))
{
//Logger::pfcp_switch().trace( "pfcp_session_look_up_pack_in_core %d bytes, got far, far id %08X", num_bytes, far_id);
#if TRACE_IS_ON
Logger
::
pfcp_switch
().
trace
(
"pfcp_session_look_up_pack_in_core %d bytes, got far, far id %08X"
,
num_bytes
,
far_id
);
#endif
sfar
->
apply_forwarding_rules
(
iph
,
num_bytes
,
nocp
,
buff
);
if
(
buff
)
{
//Logger::pfcp_switch().trace( "Buffering %d bytes, far id %08X", num_bytes, far_id);
#if TRACE_IS_ON
Logger
::
pfcp_switch
().
trace
(
"Buffering %d bytes, far id %08X"
,
num_bytes
,
far_id
);
#endif
(
*
it
)
->
buffering_requested
(
buffer
,
num_bytes
);
}
if
(
nocp
)
{
//Logger::pfcp_switch().trace( "Notify CP %d bytes, far id %08X", num_bytes, far_id);
#if TRACE_IS_ON
Logger
::
pfcp_switch
().
trace
(
"Notify CP %d bytes, far id %08X"
,
num_bytes
,
far_id
);
#endif
(
*
it
)
->
notify_cp_requested
(
ssession
);
}
}
...
...
src/spgwu/simpleswitch/pfcp_switch.hpp
View file @
047abd75
...
...
@@ -170,8 +170,8 @@ public:
void
time_out_max_commit_interval
(
const
uint32_t
timer_id
);
void
remove_pfcp_session
(
const
pfcp
::
fseid_t
&
cp_fseid
);
void
remove_pfcp_ul_pdrs_by_up_teid
(
const
teid_t
)
{}
;
void
remove_pfcp_dl_pdrs_by_ue_ip
(
const
uint32_t
)
{}
;
void
remove_pfcp_ul_pdrs_by_up_teid
(
const
teid_t
);
void
remove_pfcp_dl_pdrs_by_ue_ip
(
const
uint32_t
);
std
::
string
to_string
()
const
;
};
...
...
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