From: Ondrej Lichtner <olichtne(a)redhat.com>
We should also be configuring the dpdk-lcore-mask ovs option to ensure
that logic operations don't get scheduled on the pmd cores. Setting the
default value of the alias to 0x400 (core 10) as this is the next free
core in our usual setup.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
recipes/regression_tests/phase3/ovs-dpdk-pvp.py | 2 ++
recipes/regression_tests/phase3/ovs-dpdk-pvp.xml | 1 +
2 files changed, 3 insertions(+)
diff --git a/recipes/regression_tests/phase3/ovs-dpdk-pvp.py
b/recipes/regression_tests/phase3/ovs-dpdk-pvp.py
index 2bc3dff..6b16270 100644
--- a/recipes/regression_tests/phase3/ovs-dpdk-pvp.py
+++ b/recipes/regression_tests/phase3/ovs-dpdk-pvp.py
@@ -109,6 +109,7 @@ else:
official_result = bool_it(ctl.get_alias("official_result"))
pr_user_comment = ctl.get_alias("perfrepo_comment")
host1_dpdk_cores = ctl.get_alias("host1_dpdk_cores")
+host2_dpdk_lcores = ctl.get_alias("host2_dpdk_lcores")
host2_dpdk_cores = ctl.get_alias("host2_dpdk_cores")
guest_testpmd_cores = ctl.get_alias("guest_testpmd_cores")
guest_dpdk_cores = ctl.get_alias("guest_dpdk_cores")
@@ -193,6 +194,7 @@
h2.config("/sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages",
nr_hugepages
h2.enable_service("openvswitch")
h2.run("ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true")
h2.run("ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-socket-mem=%d"
% socket_mem)
+h2.run("ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-lcore-mask=%s"
% host2_dpdk_lcores)
h2.run("ovs-vsctl --no-wait set Open_vSwitch . other_config:pmd-cpu-mask=%s" %
host2_dpdk_cores)
h2.restart_service("openvswitch")
diff --git a/recipes/regression_tests/phase3/ovs-dpdk-pvp.xml
b/recipes/regression_tests/phase3/ovs-dpdk-pvp.xml
index 8f4af69..4968f7d 100644
--- a/recipes/regression_tests/phase3/ovs-dpdk-pvp.xml
+++ b/recipes/regression_tests/phase3/ovs-dpdk-pvp.xml
@@ -4,6 +4,7 @@
<alias name="driver" value=""/>
<alias name="official_result" value="no" />
<alias name="host1_dpdk_cores" value="2,3,4" />
+ <alias name="host2_dpdk_lcores" value="0x400" />
<alias name="host2_dpdk_cores" value="0x1E" />
<alias name="guest_testpmd_cores" value="0x7" />
<alias name="guest_dpdk_cores" value="0x6" />
--
2.19.0