Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
oai-upf-6g
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
OpenXG
oai-upf-6g
Commits
a9615b17
Commit
a9615b17
authored
Oct 16, 2025
by
Franck Messaoudi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: cleaning code
parent
846cfacd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
+0
-20
src/upf_app/wrappers/BPFMap.cpp
src/upf_app/wrappers/BPFMap.cpp
+0
-18
src/upf_app/wrappers/BPFMap.hpp
src/upf_app/wrappers/BPFMap.hpp
+0
-2
No files found.
src/upf_app/wrappers/BPFMap.cpp
View file @
a9615b17
...
...
@@ -12,21 +12,3 @@ BPFMap::~BPFMap() {}
std
::
string
BPFMap
::
getName
()
const
{
return
mName
;
}
//---------------------------------------------------------------------------------------------------------------
int
BPFMap
::
resize
(
uint32_t
max_entries
)
{
if
(
!
mpBPFMap
)
return
-
EINVAL
;
if
(
bpf_map__fd
(
mpBPFMap
)
>=
0
)
// Ensure map is not already loaded
return
-
EBUSY
;
int
ret
=
bpf_map__set_max_entries
(
mpBPFMap
,
max_entries
);
if
(
ret
!=
0
)
{
Logger
::
upf_app
().
error
(
"Failed to resize BPF map: %s"
,
mName
.
c_str
());
return
ret
;
}
Logger
::
upf_app
().
info
(
"Resized BPF map: %s to %u entries"
,
mName
.
c_str
(),
max_entries
);
return
0
;
}
\ No newline at end of file
src/upf_app/wrappers/BPFMap.hpp
View file @
a9615b17
...
...
@@ -75,8 +75,6 @@ class BPFMap {
template
<
class
KeyType
>
int
remove
(
KeyType
&
key
);
// Resize function (newly added)
int
resize
(
uint32_t
max_entries
);
//---------------------------------------------------------------------------------------------------------------
/**
* @brief Get the Name of the BPF Map.
...
...
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