summaryrefslogtreecommitdiff
path: root/config/common_bsdapp
diff options
context:
space:
mode:
authorCunming Liang <cunming.liang@intel.com>2015-02-17 10:08:15 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-02-24 20:23:07 +0100
commit4e01799aeaeb84ff4cf8f516593bc8b1e0caac45 (patch)
tree1727c81532173a066c17fde00917b0c8d90e9f56 /config/common_bsdapp
parentb4bee5f66a72e435da04c7993bbe909846b50618 (diff)
downloaddpdk-4e01799aeaeb84ff4cf8f516593bc8b1e0caac45.zip
dpdk-4e01799aeaeb84ff4cf8f516593bc8b1e0caac45.tar.gz
dpdk-4e01799aeaeb84ff4cf8f516593bc8b1e0caac45.tar.xz
ring: add optional yield to avoid spin forever
Add a sched_yield() syscall if the thread spins for too long, waiting other thread to finish its operations on the ring. That gives pre-empted thread a chance to proceed and finish with ring enqueue/dequeue operation. The purpose is to reduce contention on the ring. By ring_perf_test, it doesn't shows additional perf penalty. Signed-off-by: Cunming Liang <cunming.liang@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Diffstat (limited to 'config/common_bsdapp')
-rw-r--r--config/common_bsdapp1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/common_bsdapp b/config/common_bsdapp
index 56c5372..f93151a 100644
--- a/config/common_bsdapp
+++ b/config/common_bsdapp
@@ -248,6 +248,7 @@ CONFIG_RTE_PMD_PACKET_PREFETCH=y
CONFIG_RTE_LIBRTE_RING=y
CONFIG_RTE_LIBRTE_RING_DEBUG=n
CONFIG_RTE_RING_SPLIT_PROD_CONS=n
+CONFIG_RTE_RING_PAUSE_REP_COUNT=0
#
# Compile librte_mempool