diff options
Diffstat (limited to 'resources/libraries/python/VppConfigGenerator.py')
-rw-r--r-- | resources/libraries/python/VppConfigGenerator.py | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py index 849a32982a..7021d7fb77 100644 --- a/resources/libraries/python/VppConfigGenerator.py +++ b/resources/libraries/python/VppConfigGenerator.py @@ -827,20 +827,24 @@ class VppInitConfig: vpp_config.add_unix_cli_listen() vpp_config.add_unix_cli_no_pager() vpp_config.add_socksvr(socket=Constants.SOCKSVR_PATH) - vpp_config.add_main_heap_size("2G") - vpp_config.add_main_heap_page_size(huge_size) - vpp_config.add_default_hugepage_size(huge_size) - vpp_config.add_statseg_size("2G") - vpp_config.add_statseg_page_size(huge_size) vpp_config.add_statseg_per_node_counters("on") vpp_config.add_plugin("disable", "default") - vpp_config.add_plugin("enable", "dpdk_plugin.so") - vpp_config.add_dpdk_dev( - *[node["interfaces"][interface].get("pci_address") \ - for interface in node["interfaces"]] - ) - vpp_config.add_ip6_hash_buckets(2000000) - vpp_config.add_ip6_heap_size("4G") + vpp_config.add_buffers_per_numa(107520) + if Topology.get_node_model_bool(node, "Marvel-Octeon"): + vpp_config.add_plugin("enable", "dev_octeon_plugin.so") + else: + vpp_config.add_main_heap_size("2G") + vpp_config.add_main_heap_page_size(huge_size) + vpp_config.add_default_hugepage_size(huge_size) + vpp_config.add_statseg_size("2G") + vpp_config.add_statseg_page_size(huge_size) + vpp_config.add_ip6_hash_buckets(2000000) + vpp_config.add_ip6_heap_size("4G") + vpp_config.add_plugin("enable", "dpdk_plugin.so") + vpp_config.add_dpdk_dev( + *[node["interfaces"][interface].get("pci_address") \ + for interface in node["interfaces"]] + ) vpp_config.apply_config() @staticmethod |