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

Function test_multiple_create

dpdk/app/test/test_rib6.c:69–86  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

67 * Use a slightly different rules size each time
68 */
69int32_t
70test_multiple_create(void)
71{
72 struct rte_rib6 *rib = NULL;
73 struct rte_rib6_conf config;
74 int32_t i;
75
76 config.ext_sz = 0;
77
78 for (i = 0; i < 100; i++) {
79 config.max_nodes = MAX_RULES - i;
80 rib = rte_rib6_create(__func__, SOCKET_ID_ANY, &config);
81 RTE_TEST_ASSERT(rib != NULL, "Failed to create RIB\n");
82 rte_rib6_free(rib);
83 }
84 /* Can not test free so return success */
85 return TEST_SUCCESS;
86}
87
88/*
89 * Call rte_rib6_free for NULL pointer user input. Note: free has no return and

Callers

nothing calls this directly

Calls 2

rte_rib6_createFunction · 0.85
rte_rib6_freeFunction · 0.85

Tested by

no test coverage detected