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

Function test_multiple_create

dpdk/app/test/test_fib.c:91–110  ·  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

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

Callers

nothing calls this directly

Calls 2

rte_fib_createFunction · 0.85
rte_fib_freeFunction · 0.85

Tested by

no test coverage detected