summaryrefslogtreecommitdiffstats
path: root/build/ovs-dpdk-preconfig.yaml
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2017-05-02 20:38:56 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-02 20:38:56 +0000
commitf7e80c32e0456b0997cbe2c8ce6587f16750ac9b (patch)
treea21c4a44c73ccfa8b8fdbbd054ba35ed7907777c /build/ovs-dpdk-preconfig.yaml
parent4c3ab00cb5d3fa5ea43dc0370ac7c20fa20441c1 (diff)
parentc9bde98a9729dbc442ce8c0cdbc29c7d35167db6 (diff)
Merge "Fixes bugs in ovs dpdk"
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