summaryrefslogtreecommitdiff
path: root/test/test-pipeline
diff options
context:
space:
mode:
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>2017-10-18 16:03:49 +0100
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>2017-10-24 13:09:53 +0200
commitec35c73ec6470e92afd5cab8cef748e8484a1187 (patch)
treeeffb56d131c01272777e5de51f07db5612efbc84 /test/test-pipeline
parentea31510376ac99e2fc5466165e6b617d4434ef49 (diff)
downloaddpdk-ec35c73ec6470e92afd5cab8cef748e8484a1187.zip
dpdk-ec35c73ec6470e92afd5cab8cef748e8484a1187.tar.gz
dpdk-ec35c73ec6470e92afd5cab8cef748e8484a1187.tar.xz
table: rework cuckoo hash table
Rework for the cuckoo hash table to use the unified parameter structure. Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Diffstat (limited to 'test/test-pipeline')
-rw-r--r--test/test-pipeline/pipeline_hash.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/test/test-pipeline/pipeline_hash.c b/test/test-pipeline/pipeline_hash.c
index eda63e8..24df81c 100644
--- a/test/test-pipeline/pipeline_hash.c
+++ b/test/test-pipeline/pipeline_hash.c
@@ -402,19 +402,15 @@ app_main_loop_worker_pipeline_hash(void) {
case e_APP_PIPELINE_HASH_CUCKOO_KEY112:
case e_APP_PIPELINE_HASH_CUCKOO_KEY128:
{
- char hash_name[RTE_HASH_NAMESIZE];
-
- snprintf(hash_name, sizeof(hash_name), "RTE_TH_CUCKOO_%d",
- app.pipeline_type);
-
- struct rte_table_hash_cuckoo_params table_hash_params = {
+ struct rte_table_hash_params table_hash_params = {
+ .name = "TABLE",
.key_size = key_size,
- .n_keys = (1 << 24) + 1,
- .f_hash = test_hash,
- .seed = 0,
- .signature_offset = APP_METADATA_OFFSET(0),
.key_offset = APP_METADATA_OFFSET(32),
- .name = hash_name,
+ .key_mask = NULL,
+ .n_keys = 1 << 24,
+ .n_buckets = 1 << 22,
+ .f_hash = (rte_table_hash_op_hash)test_hash,
+ .seed = 0,
};
struct rte_pipeline_table_params table_params = {