Lines Matching refs:tbl8
54 /** Tbl entry structure. It is the same for both tbl24 and tbl8 */
78 /* Header of tbl8 */
81 * otherwise index of tbl8
84 * pointer to the tbl8 is stored
104 uint32_t tbl8_pool_pos; /**< current position in the tbl8 pool */
106 struct rte_lpm_tbl8_hdr *tbl8_hdrs; /* array of tbl8 headers */
108 struct rte_lpm6_tbl_entry tbl8[0]
109 __rte_cache_aligned; /**< LPM tbl8 table. */
159 * Init pool of free tbl8 indexes
166 /* put entire range of indexes to the tbl8 pool */
174 * Get an index of a free tbl8 from the pool
180 /* no more free tbl8 */
189 * Put an index of a free tbl8 back to the pool
290 /* allocate tbl8 indexes pool */
295 RTE_LOG(ERR, LPM, "LPM tbl8 pool allocation failed: %s (%d)",
301 /* allocate tbl8 headers */
306 RTE_LOG(ERR, LPM, "LPM tbl8 headers allocation failed: %s (%d)",
315 mem_size = sizeof(*lpm) + (sizeof(lpm->tbl8[0]) *
549 if (!lpm->tbl8[j].valid || (lpm->tbl8[j].ext_entry == 0
550 && lpm->tbl8[j].depth <= old_depth)) {
552 lpm->tbl8[j] = new_tbl8_entry;
554 } else if (lpm->tbl8[j].ext_entry == 1) {
556 tbl8_gindex_next = lpm->tbl8[j].lpm6_tbl8_gindex
565 * Init a tbl8 header
647 *next_tbl = &(lpm->tbl8[next_tbl_ind *
704 * into next tbl8 and expand the rule across the data structure.
713 /* update tbl8 rule reference counter */
724 /* If it's invalid a new tbl8 is needed */
731 /* invalidate all new tbl8 entries */
734 memset(&lpm->tbl8[tbl8_group_start], 0,
743 /* reference to a new tbl8 */
763 /* get a new tbl8 index */
781 /* Populate new tbl8 with tbl value. */
783 lpm->tbl8[i] = tbl_entry;
791 * Update tbl entry to point to new tbl8 entry. Note: The
811 *next_tbl = &(lpm->tbl8[*next_tbl_ind *
823 * -ENOSPC not enough tbl8 left
853 /* not enough tbl8 to add a rule */
940 *tbl_next = &lpm->tbl8[tbl8_index];
1115 memset(lpm->tbl8, 0, sizeof(lpm->tbl8[0])
1140 /* Zero tbl8. */
1141 memset(lpm->tbl8, 0, sizeof(lpm->tbl8[0]) *
1144 /* init pool of free tbl8 indexes */
1208 * Find range of tbl8 cells occupied by a rule
1230 /* first tbl8 */
1232 tbl = &lpm->tbl8[tbl_ind *
1245 /* go to the next level/tbl8 */
1247 tbl = &lpm->tbl8[tbl_ind *
1253 /* last level/tbl8 */
1275 owner_entry = &lpm->tbl8[