* Create rib table then delete rib table 10 times * Use a slightly different rules size each time */
| 67 | * Use a slightly different rules size each time |
| 68 | */ |
| 69 | int32_t |
| 70 | test_multiple_create(void) |
| 71 | { |
| 72 | struct rte_rib6 *rib = NULL; |
| 73 | struct rte_rib6_conf config; |
| 74 | int32_t i; |
| 75 | |
| 76 | config.ext_sz = 0; |
| 77 | |
| 78 | for (i = 0; i < 100; i++) { |
| 79 | config.max_nodes = MAX_RULES - i; |
| 80 | rib = rte_rib6_create(__func__, SOCKET_ID_ANY, &config); |
| 81 | RTE_TEST_ASSERT(rib != NULL, "Failed to create RIB\n"); |
| 82 | rte_rib6_free(rib); |
| 83 | } |
| 84 | /* Can not test free so return success */ |
| 85 | return TEST_SUCCESS; |
| 86 | } |
| 87 | |
| 88 | /* |
| 89 | * Call rte_rib6_free for NULL pointer user input. Note: free has no return and |
nothing calls this directly
no test coverage detected