* Create fib table then delete fib table 10 times * Use a slightly different rules size each time */
| 91 | * Use a slightly different rules size each time |
| 92 | */ |
| 93 | int32_t |
| 94 | test_multiple_create(void) |
| 95 | { |
| 96 | struct rte_fib6 *fib = NULL; |
| 97 | struct rte_fib6_conf config; |
| 98 | int32_t i; |
| 99 | |
| 100 | config.rib_ext_sz = 0; |
| 101 | config.default_nh = 0; |
| 102 | config.type = RTE_FIB6_DUMMY; |
| 103 | |
| 104 | for (i = 0; i < 100; i++) { |
| 105 | config.max_routes = MAX_ROUTES - i; |
| 106 | fib = rte_fib6_create(__func__, SOCKET_ID_ANY, &config); |
| 107 | RTE_TEST_ASSERT(fib != NULL, "Failed to create FIB\n"); |
| 108 | rte_fib6_free(fib); |
| 109 | } |
| 110 | /* Can not test free so return success */ |
| 111 | return TEST_SUCCESS; |
| 112 | } |
| 113 | |
| 114 | /* |
| 115 | * Call rte_fib6_free for NULL pointer user input. Note: free has no return and |
nothing calls this directly
no test coverage detected