[dpdk-dev] [PATCH 4/8] app/test: modify app/test_table_combined and app/test_table_tables
roy.fan.zhang at intel.com
roy.fan.zhang at intel.com
Sat Sep 26 00:33:08 CEST 2015
From: Fan Zhang <roy.fan.zhang at intel.com>
Tests have been updated to work on added key_mask parameter for 8-byte
key extendible bucket and LRU tables.
Signed-off-by: Fan Zhang <roy.fan.zhang at intel.com>
---
app/test/test_table_combined.c | 4 ++++
app/test/test_table_tables.c | 6 ++++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/app/test/test_table_combined.c b/app/test/test_table_combined.c
index dd09da5..359ac45 100644
--- a/app/test/test_table_combined.c
+++ b/app/test/test_table_combined.c
@@ -419,6 +419,7 @@ test_table_hash8lru(void)
.seed = 0,
.signature_offset = 0,
.key_offset = 32,
+ .key_mask = NULL,
};
uint8_t key8lru[8];
@@ -477,6 +478,7 @@ test_table_hash16lru(void)
.seed = 0,
.signature_offset = 0,
.key_offset = 32,
+ .key_mask = NULL,
};
uint8_t key16lru[16];
@@ -594,6 +596,7 @@ test_table_hash8ext(void)
.seed = 0,
.signature_offset = 0,
.key_offset = 32,
+ .key_mask = NULL,
};
uint8_t key8ext[8];
@@ -660,6 +663,7 @@ test_table_hash16ext(void)
.seed = 0,
.signature_offset = 0,
.key_offset = 32,
+ .key_mask = NULL,
};
uint8_t key16ext[16];
diff --git a/app/test/test_table_tables.c b/app/test/test_table_tables.c
index 566964b..cc222f1 100644
--- a/app/test/test_table_tables.c
+++ b/app/test/test_table_tables.c
@@ -651,7 +651,8 @@ test_table_hash_lru_generic(struct rte_table_ops *ops)
.f_hash = pipeline_test_hash,
.seed = 0,
.signature_offset = 1,
- .key_offset = 32
+ .key_offset = 32,
+ .key_mask = NULL,
};
hash_params.n_entries = 0;
@@ -766,7 +767,8 @@ test_table_hash_ext_generic(struct rte_table_ops *ops)
.f_hash = pipeline_test_hash,
.seed = 0,
.signature_offset = 1,
- .key_offset = 32
+ .key_offset = 32,
+ .key_mask = NULL,
};
hash_params.n_entries = 0;
--
2.1.0
More information about the dev
mailing list