summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Mooney <work@seanmooney.info>2018-08-07 21:41:33 +0100
committerSean Mooney <work@seanmooney.info>2018-08-07 21:41:33 +0100
commit8c1aa86354d805edeb3f16297df06e958309f42e (patch)
treef81916e478366882cad3af5676a7921639cd6dc5
parente9098965f5b51fa5ebe9eca2e6321060e4cb4573 (diff)
enable vhost numa support
- This change add a new setting OVS_DPDK_CONFIG_RTE_LIBRTE_VHOST_NUMA that default to True to enable dpdk vhost-user numa support in dpdk. Change-Id: Ibeaa764ce39b248b55fd02af70c56eaac36e0b8f
Notes
Notes (review): Code-Review+2: sean mooney <work@seanmooney.info> Workflow+1: sean mooney <work@seanmooney.info> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 17 Aug 2018 09:41:49 +0000 Reviewed-on: https://review.openstack.org/589766 Project: openstack/networking-ovs-dpdk Branch: refs/heads/master
-rw-r--r--devstack/libs/ovs-dpdk8
-rw-r--r--devstack/settings1
2 files changed, 9 insertions, 0 deletions
diff --git a/devstack/libs/ovs-dpdk b/devstack/libs/ovs-dpdk
index 6de56c3..ef3db63 100644
--- a/devstack/libs/ovs-dpdk
+++ b/devstack/libs/ovs-dpdk
@@ -384,6 +384,13 @@ function build_ovs_dpdk(){
384 OVS_DPDK_BUILD_SHARED_LIB='n' 384 OVS_DPDK_BUILD_SHARED_LIB='n'
385 fi 385 fi
386 386
387 OVS_DPDK_CONFIG_RTE_LIBRTE_VHOST_NUMA=$(trueorfalse True OVS_DPDK_CONFIG_RTE_LIBRTE_VHOST_NUMA)
388 if [ "$OVS_DPDK_CONFIG_RTE_LIBRTE_VHOST_NUMA" == "True" ]; then
389 OVS_DPDK_CONFIG_RTE_LIBRTE_VHOST_NUMA='y'
390 else
391 OVS_DPDK_CONFIG_RTE_LIBRTE_VHOST_NUMA='n'
392 fi
393
387 local enable_igb_uio='n' 394 local enable_igb_uio='n'
388 if [ "$OVS_INTERFACE_DRIVER" == "igb_uio" ]; then 395 if [ "$OVS_INTERFACE_DRIVER" == "igb_uio" ]; then
389 enable_igb_uio='y' 396 enable_igb_uio='y'
@@ -392,6 +399,7 @@ function build_ovs_dpdk(){
392 sed "s/CONFIG_RTE_BUILD_COMBINE_LIBS=n/CONFIG_RTE_BUILD_COMBINE_LIBS=y/" -i ${OVS_DPDK_DIR}/build/.config 399 sed "s/CONFIG_RTE_BUILD_COMBINE_LIBS=n/CONFIG_RTE_BUILD_COMBINE_LIBS=y/" -i ${OVS_DPDK_DIR}/build/.config
393 sed "s/CONFIG_RTE_MAX_MEMSEG=.*$/CONFIG_RTE_MAX_MEMSEG=${OVS_DPDK_MEM_SEGMENTS}/" -i ${OVS_DPDK_DIR}/build/.config 400 sed "s/CONFIG_RTE_MAX_MEMSEG=.*$/CONFIG_RTE_MAX_MEMSEG=${OVS_DPDK_MEM_SEGMENTS}/" -i ${OVS_DPDK_DIR}/build/.config
394 sed "s/CONFIG_RTE_LIBRTE_VHOST=.*$/CONFIG_RTE_LIBRTE_VHOST=${OVS_DPDK_RTE_LIBRTE_VHOST}/" -i ${OVS_DPDK_DIR}/build/.config 401 sed "s/CONFIG_RTE_LIBRTE_VHOST=.*$/CONFIG_RTE_LIBRTE_VHOST=${OVS_DPDK_RTE_LIBRTE_VHOST}/" -i ${OVS_DPDK_DIR}/build/.config
402 sed "s/CONFIG_RTE_LIBRTE_VHOST_NUMA=.*$/CONFIG_RTE_LIBRTE_VHOST_NUMA=${OVS_DPDK_CONFIG_RTE_LIBRTE_VHOST_NUMA}/" -i ${OVS_DPDK_DIR}/build/.config
395 sed "s/CONFIG_RTE_LIBRTE_VHOST_DEBUG=.*$/CONFIG_RTE_LIBRTE_VHOST_DEBUG=${OVS_DPDK_VHOST_USER_DEBUG}/" -i ${OVS_DPDK_DIR}/build/.config 403 sed "s/CONFIG_RTE_LIBRTE_VHOST_DEBUG=.*$/CONFIG_RTE_LIBRTE_VHOST_DEBUG=${OVS_DPDK_VHOST_USER_DEBUG}/" -i ${OVS_DPDK_DIR}/build/.config
396 sed "s/CONFIG_RTE_LIBRTE_KNI=.*$/CONFIG_RTE_LIBRTE_KNI=n/" -i ${OVS_DPDK_DIR}/build/.config 404 sed "s/CONFIG_RTE_LIBRTE_KNI=.*$/CONFIG_RTE_LIBRTE_KNI=n/" -i ${OVS_DPDK_DIR}/build/.config
397 sed "s/CONFIG_RTE_KNI_KMOD=.*$/CONFIG_RTE_KNI_KMOD=n/" -i ${OVS_DPDK_DIR}/build/.config 405 sed "s/CONFIG_RTE_KNI_KMOD=.*$/CONFIG_RTE_KNI_KMOD=n/" -i ${OVS_DPDK_DIR}/build/.config
diff --git a/devstack/settings b/devstack/settings
index 865daf1..cf2ff3b 100644
--- a/devstack/settings
+++ b/devstack/settings
@@ -15,6 +15,7 @@ OVS_DPDK_MEM_SEGMENTS=${OVS_DPDK_MEM_SEGMENTS:-256}
15OVS_DPDK_RTE_LIBRTE_VHOST=${OVS_DPDK_RTE_LIBRTE_VHOST:-True} 15OVS_DPDK_RTE_LIBRTE_VHOST=${OVS_DPDK_RTE_LIBRTE_VHOST:-True}
16OVS_DPDK_VHOST_USER_DEBUG=${OVS_DPDK_VHOST_USER_DEBUG:-False} 16OVS_DPDK_VHOST_USER_DEBUG=${OVS_DPDK_VHOST_USER_DEBUG:-False}
17OVS_DPDK_BUILD_SHARED_LIB=${OVS_DPDK_BUILD_SHARED_LIB:-False} 17OVS_DPDK_BUILD_SHARED_LIB=${OVS_DPDK_BUILD_SHARED_LIB:-False}
18OVS_DPDK_CONFIG_RTE_LIBRTE_VHOST_NUMA=${OVS_DPDK_CONFIG_RTE_LIBRTE_VHOST_NUMA:-True}
18 19
19# ovs constants 20# ovs constants
20OVS_DB_CONF_DIR=/etc/openvswitch 21OVS_DB_CONF_DIR=/etc/openvswitch