aboutsummaryrefslogtreecommitdiffstats
path: root/manifests
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2017-09-16 23:03:24 -0400
committerFeng Pan <fpan@redhat.com>2017-09-17 08:30:04 -0400
commita96d2dfb135f93a74f070d1c27374351f5b064a4 (patch)
treeabc61c16503a766061e05c249ac34a1a19fa886c /manifests
parentd9ad6d211b86111bdca6b78891808a1bbdec86d2 (diff)
Add capability to configure socket-mem
JIRA: PUP-5 Change-Id: I6fef4c129356d7a2d8b6d4975aada9abdeb68758 Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'manifests')
-rw-r--r--manifests/config.pp1
-rw-r--r--manifests/init.pp6
-rw-r--r--manifests/params.pp1
3 files changed, 8 insertions, 0 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
index b1ed7ad..d3773b7 100644
--- a/manifests/config.pp
+++ b/manifests/config.pp
@@ -16,6 +16,7 @@ class fdio::config {
vpp_config {
'dpdk/dev/default': value => $fdio::vpp_dpdk_dev_default_options;
'dpdk/uio-driver': value => $fdio::vpp_dpdk_uio_driver;
+ 'dpdk/socket-mem': value => $fdio::vpp_dpdk_socket_mem;
}
fdio::config::vpp_devices { $fdio::vpp_dpdk_devs: }
diff --git a/manifests/init.pp b/manifests/init.pp
index ddbf411..8e0b9bf 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -27,6 +27,11 @@
# Example: 'vlan-strip-offload on num-rx-queues 3'
# Default to undef.
#
+# [*vpp_dpdk_socket_mem*]
+# (optional) DPDK hugepage memory allocation per socket.
+# Example: '1024,1024'
+# Default to undef.
+#
# [*vpp_cpu_main_core*]
# (optional) VPP main thread pinning core.
# Defaults to undef (no pinning)
@@ -47,6 +52,7 @@ class fdio (
$vpp_dpdk_devs = $::fdio::params::vpp_dpdk_devs,
$vpp_dpdk_uio_driver = $::fdio::params::vpp_dpdk_uio_driver,
$vpp_dpdk_dev_default_options = $::fdio::params::vpp_dpdk_dev_default_options,
+ $vpp_dpdk_socket_mem = $::fdio::params::vpp_dpdk_socket_mem,
$vpp_cpu_main_core = $::fdio::params::vpp_cpu_main_core,
$vpp_cpu_corelist_workers = $::fdio::params::vpp_cpu_corelist_workers,
$copy_kernel_nic_ip = $::fdio::params::copy_kernel_nic_ip,
diff --git a/manifests/params.pp b/manifests/params.pp
index c3c3ed8..796b198 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -8,6 +8,7 @@ class fdio::params {
$vpp_dpdk_devs = []
$vpp_dpdk_uio_driver = 'uio_pci_generic'
$vpp_dpdk_dev_default_options = undef
+ $vpp_dpdk_socket_mem = undef
$vpp_cpu_main_core = undef
$vpp_cpu_corelist_workers = undef
$copy_kernel_nic_ip = true