| 404 | } |
| 405 | |
| 406 | static int |
| 407 | test_multiple_create(void) |
| 408 | { |
| 409 | struct rte_thash_ctx *ctx; |
| 410 | int key_len = 40; |
| 411 | int reta_sz = 7; |
| 412 | int i; |
| 413 | |
| 414 | for (i = 0; i < 100; i++) { |
| 415 | ctx = rte_thash_init_ctx("test", key_len, reta_sz, NULL, 0); |
| 416 | RTE_TEST_ASSERT(ctx != NULL, "Can not create CTX\n"); |
| 417 | |
| 418 | rte_thash_free_ctx(ctx); |
| 419 | } |
| 420 | |
| 421 | return TEST_SUCCESS; |
| 422 | } |
| 423 | |
| 424 | static int |
| 425 | test_free_null(void) |
nothing calls this directly
no test coverage detected