]> git.droids-corp.org - dpdk.git/blobdiff - test/test-pipeline/pipeline_hash.c
table: rework variable size key ext hash tables
[dpdk.git] / test / test-pipeline / pipeline_hash.c
index 2f8c6258a2396da5eeaf28351493903495132375..13d309d8d6d9306254b398a2548103dbe24ca3a1 100644 (file)
@@ -175,15 +175,15 @@ app_main_loop_worker_pipeline_hash(void) {
        case e_APP_PIPELINE_HASH_KEY16_EXT:
        case e_APP_PIPELINE_HASH_KEY32_EXT:
        {
-               struct rte_table_hash_ext_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,
-                       .n_buckets_ext = 1 << 21,
-                       .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 = {