Lines Matching refs:table_index

81 create_table(unsigned int with_data, unsigned int table_index,  in create_table()  argument
89 hashtest_key_lens[table_index]); in create_table()
92 hashtest_key_lens[table_index]); in create_table()
106 ut_params.key_len = hashtest_key_lens[table_index]; in create_table()
108 h[table_index] = rte_hash_find_existing(name); in create_table()
109 if (h[table_index] != NULL) in create_table()
114 rte_hash_free(h[table_index]); in create_table()
115 h[table_index] = rte_hash_create(&ut_params); in create_table()
116 if (h[table_index] == NULL) { in create_table()
126 shuffle_input_keys(unsigned int table_index, unsigned int ext) in shuffle_input_keys() argument
143 memcpy(temp_key, keys[i], hashtest_key_lens[table_index]); in shuffle_input_keys()
147 memcpy(keys[i], keys[swap_idx], hashtest_key_lens[table_index]); in shuffle_input_keys()
151 memcpy(keys[swap_idx], temp_key, hashtest_key_lens[table_index]); in shuffle_input_keys()
162 get_input_keys(unsigned int with_pushes, unsigned int table_index, in get_input_keys() argument
183 for (j = 0; j < hashtest_key_lens[table_index]; j++) in get_input_keys()
199 for (j = 1; j < hashtest_key_lens[table_index]; j++) { in get_input_keys()
220 signatures[i] = rte_hash_hash(h[table_index], keys[i]); in get_input_keys()
231 ret = rte_hash_add_key_with_hash(h[table_index], keys[i], in get_input_keys()
249 rte_hash_free(h[table_index]); in get_input_keys()
250 h[table_index] = rte_hash_create(&ut_params); in get_input_keys()
257 unsigned int table_index, unsigned int ext) in timed_adds() argument
272 ret = rte_hash_add_key_with_hash_data(h[table_index], in timed_adds()
280 ret = rte_hash_add_key_with_hash(h[table_index], in timed_adds()
290 ret = rte_hash_add_key_data(h[table_index], in timed_adds()
298 ret = rte_hash_add_key(h[table_index], keys[i]); in timed_adds()
311 cycles[table_index][ADD][with_hash][with_data] = time_taken/keys_to_add; in timed_adds()
318 unsigned int table_index, unsigned int ext) in timed_lookups() argument
337 ret = rte_hash_lookup_with_hash_data(h[table_index], in timed_lookups()
352 ret = rte_hash_lookup_with_hash(h[table_index], in timed_lookups()
361 ret = rte_hash_lookup_data(h[table_index], in timed_lookups()
375 ret = rte_hash_lookup(h[table_index], keys[j]); in timed_lookups()
388 cycles[table_index][LOOKUP][with_hash][with_data] = time_taken/num_lookups; in timed_lookups()
395 unsigned int table_index, unsigned int ext) in timed_lookups_multi() argument
421 ret = rte_hash_lookup_bulk_data(h[table_index], in timed_lookups_multi()
447 h[table_index], in timed_lookups_multi()
479 h[table_index], in timed_lookups_multi()
495 rte_hash_lookup_bulk(h[table_index], in timed_lookups_multi()
514 cycles[table_index][LOOKUP_MULTI][with_hash][with_data] = in timed_lookups_multi()
522 unsigned int table_index, unsigned int ext) in timed_deletes() argument
536 ret = rte_hash_del_key_with_hash(h[table_index], in timed_deletes()
540 ret = rte_hash_del_key(h[table_index], in timed_deletes()
553 cycles[table_index][DELETE][with_hash][with_data] = time_taken/keys_to_add; in timed_deletes()
559 free_table(unsigned table_index) in free_table() argument
561 rte_hash_free(h[table_index]); in free_table()
565 reset_table(unsigned table_index) in reset_table() argument
567 rte_hash_reset(h[table_index]); in reset_table()