| 118 | } |
| 119 | |
| 120 | static void |
| 121 | tbl8_pool_init(struct rte_trie_tbl *dp) |
| 122 | { |
| 123 | uint32_t i; |
| 124 | |
| 125 | /* put entire range of indexes to the tbl8 pool */ |
| 126 | for (i = 0; i < dp->number_tbl8s; i++) |
| 127 | dp->tbl8_pool[i] = i; |
| 128 | |
| 129 | dp->tbl8_pool_pos = 0; |
| 130 | } |
| 131 | |
| 132 | /* |
| 133 | * Get an index of a free tbl8 from the pool |