summaryrefslogtreecommitdiffstats
path: root/build/ovs-dpdk-preconfig.yaml
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2017-04-28 10:26:35 -0400
committerTim Rozet <trozet@redhat.com>2017-05-02 20:42:37 +0000
commit30a55e6318d11150869bd6ae01e2ea6191004363 (patch)
tree87eaa9e21ca564c8efe9875a95a75d238681b98b /build/ovs-dpdk-preconfig.yaml
parentc6b4b82f7f9d13721ae141b570221a20b53117ce (diff)
Fixes bugs in ovs dpdk
Changes Include: - Fixes an issue where using non-1st nic admin network deployment would result in loss of network connectivity during deployment. - Fixes an issue where not specifying cores to pin to in performance options would result in an incorrect '0' value used for core mask. JIRA: APEX-452 JIRA: APEX-453 Change-Id: I413290161abd9b2fa39b659d5ff989da9554f603 Signed-off-by: Tim Rozet <trozet@redhat.com> (cherry picked from commit c9bde98a9729dbc442ce8c0cdbc29c7d35167db6)
Diffstat (limited to 'build/ovs-dpdk-preconfig.yaml')
-rw-r--r--build/ovs-dpdk-preconfig.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/ovs-dpdk-preconfig.yaml b/build/ovs-dpdk-preconfig.yaml
index d57b0b7a..a4663ff3 100644
--- a/build/ovs-dpdk-preconfig.yaml
+++ b/build/ovs-dpdk-preconfig.yaml
@@ -83,10 +83,10 @@ resources:
if [ -n "$SOCKET_MEMORY" ]; then
ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-socket-mem=$SOCKET_MEMORY
fi
- if [ -n "$pmd_cpu_mask" ]; then
+ if [[ -n "$pmd_cpu_mask" && -n "$PMD_CORES" ]]; then
ovs-vsctl --no-wait set Open_vSwitch . other_config:pmd-cpu-mask=$pmd_cpu_mask
fi
- if [ -n "$dpdk_lcore_mask" ]; then
+ if [ -n "$dpdk_lcore_mask" && -n "$DPDK_CORES" ]]; then
ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-lcore-mask=$dpdk_lcore_mask
fi
systemctl restart openvswitch