* Init pool of free tbl8 indexes */
| 157 | * Init pool of free tbl8 indexes |
| 158 | */ |
| 159 | static void |
| 160 | tbl8_pool_init(struct rte_lpm6 *lpm) |
| 161 | { |
| 162 | uint32_t i; |
| 163 | |
| 164 | /* put entire range of indexes to the tbl8 pool */ |
| 165 | for (i = 0; i < lpm->number_tbl8s; i++) |
| 166 | lpm->tbl8_pool[i] = i; |
| 167 | |
| 168 | lpm->tbl8_pool_pos = 0; |
| 169 | } |
| 170 | |
| 171 | /* |
| 172 | * Get an index of a free tbl8 from the pool |
no outgoing calls
no test coverage detected