diff options
| author | Nataliia Solomko <natalirs1985@gmail.com> | 2025-08-19 11:47:47 +0300 |
|---|---|---|
| committer | Nataliia Solomko <natalirs1985@gmail.com> | 2025-08-21 16:48:05 +0300 |
| commit | ae336bdf8a57e28c0bc544ee6b7d57ab048123df (patch) | |
| tree | 918bb66c1194373c6caab5adcc6443656ab15a78 /src | |
| parent | d104ac2c0c5e94316f3d5825df73b93c639ec0cc (diff) | |
| download | vyos-1x-ae336bdf8a57e28c0bc544ee6b7d57ab048123df.tar.gz vyos-1x-ae336bdf8a57e28c0bc544ee6b7d57ab048123df.zip | |
T7670: VPP: Rely on all types of memory to verify memory resources
VPP can use 2M hugepages and 1G hugepages at the same time
Diffstat (limited to 'src')
| -rwxr-xr-x | src/conf_mode/vpp.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/conf_mode/vpp.py b/src/conf_mode/vpp.py index 966158ab7..cd4b47647 100755 --- a/src/conf_mode/vpp.py +++ b/src/conf_mode/vpp.py @@ -53,6 +53,7 @@ from vyos.vpp.config_verify import ( verify_vpp_statseg_size, verify_vpp_interfaces_dpdk_num_queues, verify_routes_count, + verify_vpp_main_heap_size, ) from vyos.vpp.config_filter import iface_filter_eth from vyos.vpp.utils import EthtoolGDrvinfo @@ -191,7 +192,12 @@ def get_config(config=None): # add running config if effective_config: - config['effective'] = effective_config + default_values_effective = conf.get_config_defaults( + **effective_config.kwargs, recursive=True + ) + config['effective'] = config_dict_merge( + default_values_effective, effective_config + ) if 'settings' in config: if 'interface' in config['settings']: @@ -358,12 +364,12 @@ def verify(config): workers=workers, nat44_workers=config['settings']['nat44']['workers'] ) + verify_vpp_main_heap_size(config['settings']) + verify_vpp_statseg_size(config['settings']) + # Check if available memory is enough for current VPP config verify_vpp_memory(config) - if 'statseg' in config['settings']: - verify_vpp_statseg_size(config['settings']) - # ensure DPDK/XDP settings are properly configured for iface, iface_config in config['settings']['interface'].items(): # check if selected driver is supported, but only for new interfaces |
