summaryrefslogtreecommitdiff
path: root/test/test-pipeline
diff options
context:
space:
mode:
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>2017-10-18 16:03:45 +0100
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>2017-10-24 13:08:25 +0200
commitb5cde2cb8c81eb512555c640cd3d36f6ac89559f (patch)
treef38120ffef62edb998448889cb5d89bdc8feec13 /test/test-pipeline
parent69079314139129dbedd87d8af03d003977b525d3 (diff)
downloaddpdk-b5cde2cb8c81eb512555c640cd3d36f6ac89559f.zip
dpdk-b5cde2cb8c81eb512555c640cd3d36f6ac89559f.tar.gz
dpdk-b5cde2cb8c81eb512555c640cd3d36f6ac89559f.tar.xz
table: rework variable size key lru hash table
Rework for the variable size key LRU hash table to use the mask-based hash function and 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.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/test-pipeline/pipeline_hash.c b/test/test-pipeline/pipeline_hash.c
index 13d309d..3c48640 100644
--- a/test/test-pipeline/pipeline_hash.c
+++ b/test/test-pipeline/pipeline_hash.c
@@ -204,14 +204,15 @@ app_main_loop_worker_pipeline_hash(void) {
case e_APP_PIPELINE_HASH_KEY16_LRU:
case e_APP_PIPELINE_HASH_KEY32_LRU:
{
- struct rte_table_hash_lru_params table_hash_params = {
+ struct rte_table_hash_params table_hash_params = {
+ .name = "TABLE",
.key_size = key_size,
+ .key_offset = APP_METADATA_OFFSET(32),
+ .key_mask = NULL,
.n_keys = 1 << 24,
.n_buckets = 1 << 22,
- .f_hash = test_hash,
+ .f_hash = (rte_table_hash_op_hash)test_hash,
.seed = 0,
- .signature_offset = APP_METADATA_OFFSET(0),
- .key_offset = APP_METADATA_OFFSET(32),
};
struct rte_pipeline_table_params table_params = {