[dpdk] Remove invalid vhost options 87/68287/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Tue, 30 Jul 2019 09:33:58 +0000 (13:33 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Tue, 30 Jul 2019 09:37:43 +0000 (13:37 +0400)
With DPDK 18.11 the vhost owner/perm options have to be removed
since libvirt creates the server side of the socket and OVS
connects to it using DPDK as a client.

Change-Id: Ic33de66dcc0830cd31fc54880c524f850e2c4ea1
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/patches/salt-formula-linux/0006-dpdk-Remove-invalid-vhost-options.patch [new file with mode: 0644]

diff --git a/mcp/patches/salt-formula-linux/0006-dpdk-Remove-invalid-vhost-options.patch b/mcp/patches/salt-formula-linux/0006-dpdk-Remove-invalid-vhost-options.patch
new file mode 100644 (file)
index 0000000..acc3c18
--- /dev/null
@@ -0,0 +1,25 @@
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+: Copyright (c) 2019 Mirantis Inc., Enea AB and others.
+:
+: All rights reserved. This program and the accompanying materials
+: are made available under the terms of the Apache License, Version 2.0
+: which accompanies this distribution, and is available at
+: http://www.apache.org/licenses/LICENSE-2.0
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+From: Michael Polenchuk <mpolenchuk@mirantis.com>
+Date: Tue, 30 Jul 2019 13:24:41 +0400
+Subject: [PATCH] [dpdk] Remove invalid vhost options
+
+diff --git a/linux/network/dpdk.sls b/linux/network/dpdk.sls
+index 786f7c8..c929e43 100644
+--- a/linux/network/dpdk.sls
++++ b/linux/network/dpdk.sls
+@@ -52,7 +52,7 @@ linux_network_dpdk_ovs_service:
+   "pmd-cpu-mask=\""+network.openvswitch.pmd_cpu_mask+"\"",
+   "dpdk-socket-mem=\""+network.openvswitch.dpdk_socket_mem+"\"",
+   "dpdk-lcore-mask=\""+network.openvswitch.dpdk_lcore_mask+"\"",
+-  "dpdk-extra=\"-n "+network.openvswitch.memory_channels+" --vhost-owner libvirt-qemu:kvm --vhost-perm 0664\""
++  "dpdk-extra=\"-n "+network.openvswitch.memory_channels+"\""
+ ]
+ %}