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
29a001bd
Commit
29a001bd
authored
Oct 21, 2025
by
Franck Messaoudi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: change the default values for the maps
parent
de11cb2a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
32 deletions
+13
-32
etc/config.yaml
etc/config.yaml
+9
-28
src/upf_app/app/upf_config.hpp
src/upf_app/app/upf_config.hpp
+3
-3
src/upf_app/app/upf_config_yaml.cpp
src/upf_app/app/upf_config_yaml.cpp
+1
-1
No files found.
etc/config.yaml
View file @
29a001bd
...
...
@@ -37,7 +37,7 @@ log_level:
# If you enable registration, the other NFs will use the NRF discovery mechanism
register_nf
:
general
:
yes
general
:
no
http_version
:
2
...
...
@@ -229,61 +229,42 @@ upf:
support_features
:
enable_bpf_datapath
:
yes
# If "on": BPF is used as datapath else simpleswitch is used, DEFAULT= off
enable_qos
:
yes
# OAI UPF EBPF MAP SIZES Configuration File
# These configuration map entries define key parameters for optimizing memory allocation and tuning the UPF.
# The values set in this file directly impact the size of eBPF maps used for packet processing.
# Configuration Parameters: Each parameter in this file controls a specific aspect of UPF behavior.
# 1. Network Interface Limits
# max_upf_interfaces (Default: 8)
# max_upf_interfaces (Default: 3)
# Specifies the maximum number of network interfaces that UPF can manage.
# Example: Physical/virtual interfaces for GTP-U traffic.
# max_upf_redirect_interfaces (Default:
4
)
# max_upf_redirect_interfaces (Default:
2
)
# Defines the maximum number of interfaces used for traffic redirection.
# Example: Used in PDRs for forwarding packets to specific egress interfaces.
max_upf_interfaces
:
8
max_upf_redirect_interfaces
:
4
max_upf_interfaces
:
3
max_upf_redirect_interfaces
:
2
# 2. Session and Rule Limits
# max_pdu_session (Default: 10,000)
# Determines the maximum number of concurrent PDU sessions that UPF can handle.
# Affects the memory allocation for session-related eBPF maps.
# max_pdrs_per_pdu_session (Default: 8)
# Defines the maximum number of Packet Detection Rules (PDRs) that can be applied per PDU session.
# PDRs dictate how packets are processed, forwarded, or dropped.
# max_qos_flows_per_pdu_session (Default: 8)
# Sets the maximum number of QoS flows that a single PDU session can manage.
# Impacts QoS-related eBPF maps (e.g., shaping, policing).
# max_sdf_filters_per_pdu_session (Default: 8)
# Specifies the maximum number of Service Data Flow (SDF) filters per session.
# SDF filters define how traffic is classified within a QoS flow.
max_pdu_session
:
10000
max_pdu_session
:
10000
max_pdrs_per_pdu_session
:
8
max_qos_flows_per_pdu_session
:
8
#
max_qos_flows_per_pdu_session: 8
max_sdf_filters_per_pdu_session
:
8
# 3. ARP Table Limit
# max_arp_entries (Default: 4)
# max_arp_entries (Default: 2)
# Limits the number of ARP table entries stored in eBPF maps.
# Used for resolving MAC addresses in the UPF forwarding path.
max_arp_entries
:
1572
max_arp_entries
:
2
remote_n6_gw
:
oai-ext-dn
upf_info
:
sNssaiUpfInfoList
:
...
...
src/upf_app/app/upf_config.hpp
View file @
29a001bd
...
...
@@ -180,13 +180,13 @@ class upf_config {
enable_5g_features
=
true
;
enable_bpf_datapath
=
false
;
enable_qos
=
false
;
max_upf_interfaces
=
8
;
max_upf_redirect_interfaces
=
4
;
max_upf_interfaces
=
3
;
max_upf_redirect_interfaces
=
2
;
max_pdu_session
=
10000
;
max_pdrs_per_pdu_session
=
8
;
max_qos_flows_per_pdu_session
=
8
;
max_sdf_filters_per_pdu_session
=
8
;
max_arp_entries
=
157
2
;
max_arp_entries
=
2
;
register_nrf
=
false
;
upf_info
=
{};
...
...
src/upf_app/app/upf_config_yaml.cpp
View file @
29a001bd
...
...
@@ -220,7 +220,7 @@ upf::upf(
const
std
::
map
<
std
::
string
,
upf_interface_config
>&
interfaces
)
:
nf
(
name
,
host
,
sbi
),
m_upf_support_features
(
false
,
false
,
8
,
4
,
10000
,
8
,
8
,
8
,
157
2
,
false
,
false
),
false
,
false
,
3
,
2
,
10000
,
8
,
8
,
8
,
2
,
false
,
false
),
m_interfaces
(
interfaces
)
{
model
::
nrf
::
SnssaiUpfInfoItem
item
;
item
.
setSNssai
(
DEFAULT_SNSSAI
);
...
...
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