MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_multiple_create

Function test_multiple_create

dpdk/app/test/test_fib6.c:93–112  ·  view source on GitHub ↗

* Create fib table then delete fib table 10 times * Use a slightly different rules size each time */

Source from the content-addressed store, hash-verified

91 * Use a slightly different rules size each time
92 */
93int32_t
94test_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

Callers

nothing calls this directly

Calls 2

rte_fib6_createFunction · 0.85
rte_fib6_freeFunction · 0.85

Tested by

no test coverage detected