aboutsummaryrefslogtreecommitdiffstats
path: root/test/test/test_hash_perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test/test_hash_perf.c')
-rw-r--r--test/test/test_hash_perf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test/test_hash_perf.c b/test/test/test_hash_perf.c
index c0051b20..b0514b10 100644
--- a/test/test/test_hash_perf.c
+++ b/test/test/test_hash_perf.c
@@ -49,7 +49,8 @@
#define MAX_ENTRIES (1 << 19)
#define KEYS_TO_ADD (MAX_ENTRIES * 3 / 4) /* 75% table utilization */
#define NUM_LOOKUPS (KEYS_TO_ADD * 5) /* Loop among keys added, several times */
-#define BUCKET_SIZE 4
+/* BUCKET_SIZE should be same as RTE_HASH_BUCKET_ENTRIES in rte_hash library */
+#define BUCKET_SIZE 8
#define NUM_BUCKETS (MAX_ENTRIES / BUCKET_SIZE)
#define MAX_KEYSIZE 64
#define NUM_KEYSIZES 10