aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-04-08 12:42:08 +0000
committerPeter Mikus <pmikus@cisco.com>2019-04-24 13:46:44 +0000
commit0b0b14fb00fbaab5eb2745657d741084fe2e1de2 (patch)
treef46f0696fa142a5d8d01a137184d2ee9e96f8cfe /resources/libraries/python
parent91f2cb2b789c8cfcaa7fe3d7617fe6b8230df22a (diff)
FIX: Large number of interfaces and worker threads
Add buffers-per-numa (previously num-mbuf) Change-Id: Iad0863668a65b1595630d49a047d591659c7bba5 Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python')
-rw-r--r--resources/libraries/python/KubernetesUtils.py2
-rw-r--r--resources/libraries/python/VppConfigGenerator.py18
2 files changed, 10 insertions, 10 deletions
diff --git a/resources/libraries/python/KubernetesUtils.py b/resources/libraries/python/KubernetesUtils.py
index c3ebb4c095..e932492e05 100644
--- a/resources/libraries/python/KubernetesUtils.py
+++ b/resources/libraries/python/KubernetesUtils.py
@@ -493,7 +493,7 @@ class KubernetesUtils(object):
vpp_config.add_dpdk_no_tx_checksum_offload()
vpp_config.add_dpdk_dev_default_rxq(kwargs['rxq_count_int'])
vpp_config.add_dpdk_dev(kwargs['if1'], kwargs['if2'])
- vpp_config.add_dpdk_num_mbufs(kwargs['num_mbufs_int'])
+ vpp_config.add_buffers_per_numa(kwargs['buffers_per_numa'])
# We will pop first core from list to be main core
vpp_config.add_cpu_main_core(str(cpuset_main.pop(0)))
# if this is not only core in list, the rest will be used as workers.
diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py
index 154e2e9095..350e1c0881 100644
--- a/resources/libraries/python/VppConfigGenerator.py
+++ b/resources/libraries/python/VppConfigGenerator.py
@@ -220,6 +220,15 @@ class VppConfigGenerator(object):
path = ['api-segment', 'api-size']
self.add_config_item(self._nodeconfig, value, path)
+ def add_buffers_per_numa(self, value):
+ """Increase number of buffers allocated.
+
+ :param value: Number of buffers allocated.
+ :type value: int
+ """
+ path = ['buffers', 'buffers-per-numa']
+ self.add_config_item(self._nodeconfig, value, path)
+
def add_dpdk_dev(self, *devices):
"""Add DPDK PCI device configuration.
@@ -343,15 +352,6 @@ class VppConfigGenerator(object):
path = ['dpdk', 'log-level']
self.add_config_item(self._nodeconfig, value, path)
- def add_dpdk_num_mbufs(self, value):
- """Add DPDK number of I/O buffers.
-
- :param value: Number of I/O buffers.
- :type value: int
- """
- path = ['dpdk', 'num-mbufs']
- self.add_config_item(self._nodeconfig, value, path)
-
def add_dpdk_no_pci(self):
"""Add DPDK no-pci."""
path = ['dpdk', 'no-pci']