vpp: T8261: Refactor resource settings into 'resource-allocation' section#4997
Merged
c-po merged 1 commit intovyos:currentfrom Feb 19, 2026
Merged
vpp: T8261: Refactor resource settings into 'resource-allocation' section#4997c-po merged 1 commit intovyos:currentfrom
c-po merged 1 commit intovyos:currentfrom
Conversation
|
👍 |
sever-sever
approved these changes
Feb 18, 2026
Member
sever-sever
left a comment
There was a problem hiding this comment.
LGTM
Before migration:
set vpp settings buffers buffers-per-numa 'auto'
set vpp settings buffers data-size '2048'
set vpp settings buffers page-size '2M'
set vpp settings interface eth1
set vpp settings ipv6 hash-buckets '65536'
set vpp settings ipv6 heap-size '64M'
set vpp settings l2learn limit '2000000'
set vpp settings logging default-level 'info'
set vpp settings memory main-heap-page-size '2M'
set vpp settings memory main-heap-size '3000M'
set vpp settings physmem max-size '8G'
set vpp settings poll-sleep-usec '2222'
set vpp settings resource-allocation cpu-cores '1'
set vpp settings statseg page-size '2M'
set vpp settings statseg size '256M'
After migration:
set vpp settings interface eth1
set vpp settings logging default-level 'info'
set vpp settings poll-sleep-usec '2222'
set vpp settings resource-allocation buffers buffers-per-numa 'auto'
set vpp settings resource-allocation buffers data-size '2048'
set vpp settings resource-allocation buffers page-size '2M'
set vpp settings resource-allocation cpu-cores '1'
set vpp settings resource-allocation ipv6 hash-buckets '65536'
set vpp settings resource-allocation ipv6 heap-size '64M'
set vpp settings resource-allocation mac-limit '2000000'
set vpp settings resource-allocation memory main-heap-page-size '2M'
set vpp settings resource-allocation memory main-heap-size '3000M'
set vpp settings resource-allocation memory physmem-max-size '8G'
set vpp settings resource-allocation memory stats page-size '2M'
set vpp settings resource-allocation memory stats size '256M'
VPP config after migration:
vyos@r14# cat /run/vpp/vpp.conf
# Generated by ${vyos_conf_scripts_dir}/vpp.py
unix {
nodaemon
log /var/log/vpp.log
full-coredump
cli-listen /run/vpp/cli.sock
gid vpp
systemd-notify
# exec /etc/vpp/bootstrap.vpp
poll-sleep-usec 2222
}
cpu {
main-core 2
skip-cores 2
}
buffers {
buffers-per-numa 16384
default data-size 2048
page-size 2M
}
ip6 {
hash-buckets 65536
heap-size 64M
}
l2learn {
limit 2000000
}
logging {
default-log-level info
default-syslog-log-level info
}
physmem {
max-size 8G
}
plugins {
plugin default { disable }
plugin avf_plugin.so { enable }
plugin dpdk_plugin.so { enable }
plugin vmxnet3_plugin.so { enable }
plugin lacp_plugin.so { enable }
plugin linux_cp_plugin.so { enable }
plugin linux_nl_plugin.so { enable }
plugin pppoe_plugin.so { enable }
# Flow
plugin flowprobe_plugin.so { enable }
plugin sflow_plugin.so { enable }
# NAT uncomment if needed
# plugin cnat_plugin.so { enable }
plugin nat_plugin.so { enable }
plugin nat44_ei_plugin.so { enable }
plugin det44_plugin.so { enable }
# plugin nat44_ei_plugin.so { enable }
# plugin nat64_plugin.so { enable }
# plugin nat66_plugin.so { enable }
# plugin pnat_plugin.so { enable }
# Tunnels
plugin geneve_plugin.so { enable }
plugin gre_plugin.so { enable }
plugin vxlan_plugin.so { enable }
# Secure
# plugin ikev2_plugin.so { enable }
# plugin dns_plugin.so { enable } # Probably required for FQDN peers
# plugin wireguard_plugin.so { enable }
# ACL
plugin acl_plugin.so { enable }
# DHCP plugin
plugin dhcp_plugin.so { enable }
}
crypto-engines {
default { disable }
}
linux-cp {
lcp-sync
lcp-auto-subint
route-no-paths
}
linux-nl {
nl-rx-buffer-size 268435456
}
statseg {
size 256M
page-size 2M
}
memory {
main-heap-size 3000M
main-heap-page-size 2M
default-hugepage-size 2M
}
dpdk {
# Whitelist the fake PCI address 0000:00:00.0
# This prevents all devices from being added to VPP-DPDK by default
dev 0000:00:00.0
dev 0000:07:00.0 {
name eth1
num-rx-desc 1024
num-tx-desc 1024
}
uio-bind-force
}
pppoe {
enable-pass-nd-and-dhcpv6
}
[edit]
vyos@r14#
1 task
c-po
approved these changes
Feb 18, 2026
Member
c-po
left a comment
There was a problem hiding this comment.
Move CLI nodes - implementation looks good. tests pass
c-po
requested changes
Feb 18, 2026
interface-definitions/vpp.xml.in
Outdated
Member
There was a problem hiding this comment.
Using u32 will automatically expand to <0-4294967295> - see /etc/bash_completion.d/vyatta-cfg for details.
Suggested change
| <format>u32:0-4294967295</format> | |
| <format>u32</format> |
Member
|
Conflicts in the migration script at the moment: |
|
CI integration 👍 passed! Details
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change summary
Types of changes
Related Task(s)
Related PR(s)
How to test / Smoketest result
Checklist: