git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hash: add reset function
[dpdk.git]
/
app
/
test
/
test_hash.c
diff --git
a/app/test/test_hash.c
b/app/test/test_hash.c
index
e70d859
..
448586c
100644
(file)
--- a/
app/test/test_hash.c
+++ b/
app/test/test_hash.c
@@
-1132,9
+1132,7
@@
static int test_average_table_utilization(void)
average_keys_added += added_keys;
/* Reset the table */
average_keys_added += added_keys;
/* Reset the table */
- rte_hash_free(handle);
- handle = rte_hash_create(&ut_params);
- RETURN_IF_ERROR(handle == NULL, "hash creation failed");
+ rte_hash_reset(handle);
/* Print a dot to show progress on operations */
printf(".");
/* Print a dot to show progress on operations */
printf(".");