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