From: Yipeng Wang Date: Fri, 26 Oct 2018 09:53:42 +0000 (-0700) Subject: test/hash: use jhash for multi-writer X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=49aea4ff76196a59158954b077fe783a091d5954;p=dpdk.git test/hash: use jhash for multi-writer With sequential key, the test will cover more corner cases with jhash instead of crc hash, since jhash generates more random hash pattern on sequential key. It is useful for functional verification. Signed-off-by: Yipeng Wang --- diff --git a/test/test/test_hash_multiwriter.c b/test/test/test_hash_multiwriter.c index 6a3eb10bd1..d447f6dca3 100644 --- a/test/test/test_hash_multiwriter.c +++ b/test/test/test_hash_multiwriter.c @@ -12,6 +12,7 @@ #include #include #include +#include #include "test.h" @@ -108,7 +109,7 @@ test_hash_multiwriter(void) struct rte_hash_parameters hash_params = { .entries = nb_entries, .key_len = sizeof(uint32_t), - .hash_func = rte_hash_crc, + .hash_func = rte_jhash, .hash_func_init_val = 0, .socket_id = rte_socket_id(), };