blob: d3773b7cc320e990289cce905cdc37f202744d22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# == Class fdio::config
#
# This class handles fdio config changes.
#
class fdio::config {
if $fdio::vpp_dpdk_support {
# ensure that dpdk module is loaded
$dpdk_pmd_real = regsubst($fdio::vpp_dpdk_uio_driver, '-', '_', 'G')
exec { 'insert_dpdk_kmod':
command => "modprobe ${fdio::vpp_dpdk_uio_driver}",
unless => "lsmod | grep ${dpdk_pmd_real}",
path => '/bin:/sbin',
}
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: }
}
vpp_config {
'cpu/main-core': value => $fdio::vpp_cpu_main_core;
'cpu/corelist-workers': value => $fdio::vpp_cpu_corelist_workers;
}
}
|