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

Function tbl8_get

dpdk/lib/fib/trie.c:135–144  ·  view source on GitHub ↗

* Get an index of a free tbl8 from the pool */

Source from the content-addressed store, hash-verified

133 * Get an index of a free tbl8 from the pool
134 */
135static inline int32_t
136tbl8_get(struct rte_trie_tbl *dp)
137{
138 if (dp->tbl8_pool_pos == dp->number_tbl8s)
139 /* no more free tbl8 */
140 return -ENOSPC;
141
142 /* next index */
143 return dp->tbl8_pool[dp->tbl8_pool_pos++];
144}
145
146/*
147 * Put an index of a free tbl8 back to the pool

Callers 1

tbl8_allocFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected