summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHonnappa Nagarahalli <honnappa.nagarahalli@arm.com>2018-10-26 00:37:29 -0500
committerThomas Monjalon <thomas@monjalon.net>2018-10-26 12:43:52 +0200
commit40f8e9c28c4e432a0a1300008a25097042382654 (patch)
treefb69a8245561171a626e13c58f18ab6b3a00bc7f /test
parente0130788576fb85039f5c491b82575a0190f5d4b (diff)
downloaddpdk-40f8e9c28c4e432a0a1300008a25097042382654.zip
dpdk-40f8e9c28c4e432a0a1300008a25097042382654.tar.gz
dpdk-40f8e9c28c4e432a0a1300008a25097042382654.tar.xz
hash: separate multi-writer from r/w concurrency
RW concurrency is required with single writer and multiple reader usecase as well. Hence, multi-writer should not be enabled by default when RW concurrency is enabled. Fixes: f2e3001b53ec ("hash: support read/write concurrency") Cc: stable@dpdk.org Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com> Reviewed-by: Gavin Hu <gavin.hu@arm.com> Reviewed-by: Yipeng Wang <yipeng1.wang@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'test')
-rw-r--r--test/test/test_hash_readwrite.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test/test_hash_readwrite.c b/test/test/test_hash_readwrite.c
index 2a4f7b9..a8fadd0 100644
--- a/test/test/test_hash_readwrite.c
+++ b/test/test/test_hash_readwrite.c
@@ -122,10 +122,12 @@ init_params(int use_htm, int use_jhash)
if (use_htm)
hash_params.extra_flag =
RTE_HASH_EXTRA_FLAGS_TRANS_MEM_SUPPORT |
- RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY;
+ RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY |
+ RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD;
else
hash_params.extra_flag =
- RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY;
+ RTE_HASH_EXTRA_FLAGS_RW_CONCURRENCY |
+ RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD;
hash_params.name = "tests";