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

Function test_multiple_create

dpdk/app/test/test_rib.c:70–87  ·  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

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

Callers

nothing calls this directly

Calls 2

rte_rib_createFunction · 0.85
rte_rib_freeFunction · 0.85

Tested by

no test coverage detected