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

Function tbl8_put

dpdk/lib/lpm/rte_lpm6.c:189–198  ·  view source on GitHub ↗

* Put an index of a free tbl8 back to the pool */

Source from the content-addressed store, hash-verified

187 * Put an index of a free tbl8 back to the pool
188 */
189static inline uint32_t
190tbl8_put(struct rte_lpm6 *lpm, uint32_t tbl8_ind)
191{
192 if (lpm->tbl8_pool_pos == 0)
193 /* pool is full */
194 return -ENOSPC;
195
196 lpm->tbl8_pool[--lpm->tbl8_pool_pos] = tbl8_ind;
197 return 0;
198}
199
200/*
201 * Returns number of tbl8s available in the pool

Callers 1

remove_tblFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected