Lines Matching refs:handle

117 	struct rte_efd_table *handle;  in test_add_delete()  local
122 handle = rte_efd_create("test_add_delete", in test_add_delete()
125 TEST_ASSERT_NOT_NULL(handle, "Error creating the EFD table\n"); in test_add_delete()
128 TEST_ASSERT_SUCCESS(rte_efd_update(handle, test_socket_id, &keys[0], in test_add_delete()
133 TEST_ASSERT_EQUAL(rte_efd_lookup(handle, test_socket_id, &keys[0]), in test_add_delete()
137 TEST_ASSERT_SUCCESS(rte_efd_delete(handle, test_socket_id, &keys[0], in test_add_delete()
145 rte_efd_free(handle); in test_add_delete()
160 struct rte_efd_table *handle; in test_add_update_delete() local
166 handle = rte_efd_create("test_add_update_delete", TABLE_SIZE, in test_add_update_delete()
169 TEST_ASSERT_NOT_NULL(handle, "Error creating the efd table\n"); in test_add_update_delete()
171 TEST_ASSERT_SUCCESS(rte_efd_update(handle, test_socket_id, &keys[1], in test_add_update_delete()
175 TEST_ASSERT_EQUAL(rte_efd_lookup(handle, test_socket_id, &keys[1]), 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()
188 TEST_ASSERT_SUCCESS(rte_efd_delete(handle, test_socket_id, &keys[1], in test_add_update_delete()
196 rte_efd_free(handle); in test_add_update_delete()
210 struct rte_efd_table *handle = NULL, *result = NULL; in test_efd_find_existing() local
215 handle = rte_efd_create("efd_find_existing", TABLE_SIZE, in test_efd_find_existing()
218 TEST_ASSERT_NOT_NULL(handle, "Error creating the efd table\n"); in test_efd_find_existing()
222 TEST_ASSERT_EQUAL(result, handle, "could not find existing efd table"); in test_efd_find_existing()
229 rte_efd_free(handle); in test_efd_find_existing()
244 struct rte_efd_table *handle; in test_five_keys() local
251 handle = rte_efd_create("test_five_keys", TABLE_SIZE, in test_five_keys()
254 TEST_ASSERT_NOT_NULL(handle, "Error creating the efd table\n"); in test_five_keys()
262 TEST_ASSERT_SUCCESS(rte_efd_update(handle, test_socket_id, in test_five_keys()
272 rte_efd_lookup_bulk(handle, test_socket_id, 5, in test_five_keys()
288 TEST_ASSERT_SUCCESS(rte_efd_update(handle, test_socket_id, in test_five_keys()
296 TEST_ASSERT_EQUAL(rte_efd_lookup(handle, test_socket_id, in test_five_keys()
304 TEST_ASSERT_SUCCESS(rte_efd_delete(handle, test_socket_id, in test_five_keys()
314 rte_efd_free(handle); in test_five_keys()
325 struct rte_efd_table *handle = NULL; in test_average_table_utilization() local
335 handle = rte_efd_create("test_efd", num_rules_in, in test_average_table_utilization()
338 if (handle == NULL) { in test_average_table_utilization()
354 if (rte_efd_update(handle, test_socket_id, simple_key, in test_average_table_utilization()
357 if (rte_efd_lookup(handle, test_socket_id, simple_key) in test_average_table_utilization()
367 rte_efd_free(handle); in test_average_table_utilization()
389 struct rte_efd_table *handle, *tmp; in test_efd_creation_with_bad_parameters() local
392 handle = rte_efd_create("creation_with_bad_parameters_0", TABLE_SIZE, 0, in test_efd_creation_with_bad_parameters()
394 if (handle != NULL) { in test_efd_creation_with_bad_parameters()
395 rte_efd_free(handle); in test_efd_creation_with_bad_parameters()
401 handle = rte_efd_create("creation_with_bad_parameters_1", TABLE_SIZE, 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_2", TABLE_SIZE, in test_efd_creation_with_bad_parameters()
413 if (handle != NULL) { in test_efd_creation_with_bad_parameters()
414 rte_efd_free(handle); in test_efd_creation_with_bad_parameters()
421 handle = rte_efd_create("same_name", TABLE_SIZE, in test_efd_creation_with_bad_parameters()
424 if (handle == NULL) { in test_efd_creation_with_bad_parameters()
432 rte_efd_free(handle); in test_efd_creation_with_bad_parameters()
436 rte_efd_free(handle); in test_efd_creation_with_bad_parameters()