* Get an index of a free tbl8 from the pool */
| 133 | * Get an index of a free tbl8 from the pool |
| 134 | */ |
| 135 | static inline int32_t |
| 136 | tbl8_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 |