X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=app%2Ftest%2Ftest_hash_perf.c;h=c0051b20fbe2c70d21642ef89c5a237e5ac096e6;hb=5450a8671bf38f56276ce7fb1dc97b55689270d3;hp=e9a522b5ac6ca8db2569ac7701f1fff59c9e2a42;hpb=473d1bebce43d9c08b8195c45ff022fb26bca594;p=dpdk.git diff --git a/app/test/test_hash_perf.c b/app/test/test_hash_perf.c index e9a522b5ac..c0051b20fb 100644 --- a/app/test/test_hash_perf.c +++ b/app/test/test_hash_perf.c @@ -100,7 +100,6 @@ int32_t positions[KEYS_TO_ADD]; /* Parameters used for hash table in unit test functions. */ static struct rte_hash_parameters ut_params = { .entries = MAX_ENTRIES, - .bucket_entries = BUCKET_SIZE, .hash_func = rte_jhash, .hash_func_init_val = 0, }; @@ -141,7 +140,7 @@ shuffle_input_keys(unsigned table_index) { unsigned i; uint32_t swap_idx; - uint8_t temp_key[RTE_HASH_KEY_LENGTH_MAX]; + uint8_t temp_key[MAX_KEYSIZE]; hash_sig_t temp_signature; int32_t temp_position; @@ -657,8 +656,4 @@ test_hash_perf(void) return 0; } -static struct test_command hash_perf_cmd = { - .command = "hash_perf_autotest", - .callback = test_hash_perf, -}; -REGISTER_TEST_COMMAND(hash_perf_cmd); +REGISTER_TEST_COMMAND(hash_perf_autotest, test_hash_perf);