Set pmd-cpu-mask in ovsdb by ovs_pmd_core_mask in yaml
Allow configuration to set the core(s) used DPDK PMD threads. Found in https://jira.opnfv.org/browse/OVSNFV-44 Change-Id: Ia66b42c8ea41af8422e7fc1d3c88e106b7774289 Signed-off-by: Billy O'Mahony <billy.o.mahony@intel.com>
This commit is contained in:
parent
a8f78d202d
commit
b8f3735ff3
|
@ -9,6 +9,7 @@ host=$1
|
|||
nsh=$2
|
||||
dpdk=$3
|
||||
dpdk_socket_mem=${4:-''}
|
||||
pmd_cpu_mask=${5:-'2'}
|
||||
|
||||
if [ $nsh = 'true' ]
|
||||
then
|
||||
|
@ -43,6 +44,7 @@ else
|
|||
|
||||
ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true
|
||||
ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-socket-mem="$dpdk_socket_mem"
|
||||
ovs-vsctl --no-wait set Open_vSwitch . other_config:pmd-cpu-mask="$pmd_cpu_mask"
|
||||
|
||||
service openvswitch-switch restart
|
||||
fi
|
||||
|
|
|
@ -8,12 +8,12 @@ $install_nsh = $ovs_settings['install_nsh']
|
|||
$install_dpdk = $ovs_settings['install_dpdk']
|
||||
$install_on_controller = $ovs_settings['install_on_controller']
|
||||
$ovs_socket_mem = join(pick($dpdk['ovs_socket_mem'], []), ',')
|
||||
|
||||
$ovs_pmd_core_mask = $dpdk['ovs_pmd_core_mask']
|
||||
|
||||
if $operatingsystem == 'Ubuntu' {
|
||||
if (!roles_include(['primary-controller', 'controller'])) or $install_on_controller {
|
||||
exec { 'install ovs_nsh_dpdk':
|
||||
command => "curl http://${master_ip}:8080/plugins/fuel-plugin-ovs-1.0/deployment_scripts/install.sh | bash -s ${master_ip} ${install_nsh} ${install_dpdk} ${ovs_socket_mem}",
|
||||
command => "curl http://${master_ip}:8080/plugins/fuel-plugin-ovs-1.0/deployment_scripts/install.sh | bash -s ${master_ip} ${install_nsh} ${install_dpdk} ${ovs_socket_mem} ${ovs_pmd_core_mask}",
|
||||
path => '/usr/bin:/usr/sbin:/bin:/sbin',
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue