aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/VppConfigGenerator.py
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/VppConfigGenerator.py
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/VppConfigGenerator.py')
-rw-r--r--resources/libraries/python/VppConfigGenerator.py18
1 files changed, 9 insertions, 9 deletions
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']