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