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

Function tbl8_pool_init

dpdk/lib/lpm/rte_lpm6.c:159–169  ·  view source on GitHub ↗

* Init pool of free tbl8 indexes */

Source from the content-addressed store, hash-verified

157 * Init pool of free tbl8 indexes
158 */
159static void
160tbl8_pool_init(struct rte_lpm6 *lpm)
161{
162 uint32_t i;
163
164 /* put entire range of indexes to the tbl8 pool */
165 for (i = 0; i < lpm->number_tbl8s; i++)
166 lpm->tbl8_pool[i] = i;
167
168 lpm->tbl8_pool_pos = 0;
169}
170
171/*
172 * Get an index of a free tbl8 from the pool

Callers 3

rte_lpm6_createFunction · 0.70
rte_lpm6_delete_allFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected