Lines Matching refs:handle
126 struct rte_efd_table *handle; in test_add_delete() local
131 handle = rte_efd_create("test_add_delete", in test_add_delete()
134 TEST_ASSERT_NOT_NULL(handle, "Error creating the EFD table\n"); in test_add_delete()
137 TEST_ASSERT_SUCCESS(rte_efd_update(handle, test_socket_id, &keys[0], in test_add_delete()
142 TEST_ASSERT_EQUAL(rte_efd_lookup(handle, test_socket_id, &keys[0]), in test_add_delete()
146 TEST_ASSERT_SUCCESS(rte_efd_delete(handle, test_socket_id, &keys[0], in test_add_delete()
154 rte_efd_free(handle); in test_add_delete()
169 struct rte_efd_table *handle; in test_add_update_delete() local
175 handle = rte_efd_create("test_add_update_delete", TABLE_SIZE, in test_add_update_delete()
178 TEST_ASSERT_NOT_NULL(handle, "Error creating the efd table\n"); in test_add_update_delete()
180 TEST_ASSERT_SUCCESS(rte_efd_update(handle, test_socket_id, &keys[1], in test_add_update_delete()
184 TEST_ASSERT_EQUAL(rte_efd_lookup(handle, test_socket_id, &keys[1]), in test_add_update_delete()
189 TEST_ASSERT_SUCCESS(rte_efd_update(handle, test_socket_id, &keys[1], in test_add_update_delete()
193 TEST_ASSERT_EQUAL(rte_efd_lookup(handle, test_socket_id, &keys[1]), in test_add_update_delete()
197 TEST_ASSERT_SUCCESS(rte_efd_delete(handle, test_socket_id, &keys[1], in test_add_update_delete()
205 rte_efd_free(handle); in test_add_update_delete()
219 struct rte_efd_table *handle = NULL, *result = NULL; in test_efd_find_existing() local
224 handle = rte_efd_create("efd_find_existing", TABLE_SIZE, in test_efd_find_existing()
227 TEST_ASSERT_NOT_NULL(handle, "Error creating the efd table\n"); in test_efd_find_existing()
231 TEST_ASSERT_EQUAL(result, handle, "could not find existing efd table"); in test_efd_find_existing()
238 rte_efd_free(handle); in test_efd_find_existing()
253 struct rte_efd_table *handle; in test_five_keys() local
260 handle = rte_efd_create("test_five_keys", TABLE_SIZE, in test_five_keys()
263 TEST_ASSERT_NOT_NULL(handle, "Error creating the efd table\n"); in test_five_keys()
271 TEST_ASSERT_SUCCESS(rte_efd_update(handle, test_socket_id, in test_five_keys()
281 rte_efd_lookup_bulk(handle, test_socket_id, 5, in test_five_keys()
297 TEST_ASSERT_SUCCESS(rte_efd_update(handle, test_socket_id, in test_five_keys()
305 TEST_ASSERT_EQUAL(rte_efd_lookup(handle, test_socket_id, in test_five_keys()
313 TEST_ASSERT_SUCCESS(rte_efd_delete(handle, test_socket_id, in test_five_keys()
323 rte_efd_free(handle); in test_five_keys()
334 struct rte_efd_table *handle = NULL; in test_average_table_utilization() local
344 handle = rte_efd_create("test_efd", num_rules_in, in test_average_table_utilization()
347 if (handle == NULL) { in test_average_table_utilization()
363 if (rte_efd_update(handle, test_socket_id, simple_key, in test_average_table_utilization()
366 if (rte_efd_lookup(handle, test_socket_id, simple_key) in test_average_table_utilization()
376 rte_efd_free(handle); in test_average_table_utilization()
398 struct rte_efd_table *handle, *tmp; in test_efd_creation_with_bad_parameters() local
401 handle = rte_efd_create("creation_with_bad_parameters_0", TABLE_SIZE, 0, in test_efd_creation_with_bad_parameters()
403 if (handle != NULL) { in test_efd_creation_with_bad_parameters()
404 rte_efd_free(handle); in test_efd_creation_with_bad_parameters()
410 handle = rte_efd_create("creation_with_bad_parameters_1", TABLE_SIZE, in test_efd_creation_with_bad_parameters()
412 if (handle != NULL) { in test_efd_creation_with_bad_parameters()
413 rte_efd_free(handle); in test_efd_creation_with_bad_parameters()
419 handle = rte_efd_create("creation_with_bad_parameters_2", TABLE_SIZE, in test_efd_creation_with_bad_parameters()
422 if (handle != NULL) { in test_efd_creation_with_bad_parameters()
423 rte_efd_free(handle); in test_efd_creation_with_bad_parameters()
430 handle = rte_efd_create("same_name", TABLE_SIZE, in test_efd_creation_with_bad_parameters()
433 if (handle == NULL) { in test_efd_creation_with_bad_parameters()
441 rte_efd_free(handle); in test_efd_creation_with_bad_parameters()
445 rte_efd_free(handle); in test_efd_creation_with_bad_parameters()