* Put an index of a free tbl8 back to the pool */
| 187 | * Put an index of a free tbl8 back to the pool |
| 188 | */ |
| 189 | static inline uint32_t |
| 190 | tbl8_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 |