Lines Matching defs:tbl
68 /** Rules tbl entry structure. */
75 /** Rules tbl entry key. */
567 simulate_add_step(struct rte_lpm6 *lpm, struct rte_lpm6_tbl_entry *tbl,
590 if (tbl[entry_ind].valid == 0 || tbl[entry_ind].ext_entry == 0) {
606 next_tbl_ind = tbl[entry_ind].lpm6_tbl8_gindex;
619 add_step(struct rte_lpm6 *lpm, struct rte_lpm6_tbl_entry *tbl,
647 if (!tbl[i].valid || (tbl[i].ext_entry == 0 &&
648 tbl[i].depth <= depth)) {
658 tbl[i] = new_tbl_entry;
660 } else if (tbl[i].ext_entry == 1) {
663 * If tbl entry is valid and extended calculate the index
666 tbl8_gindex = tbl[i].lpm6_tbl8_gindex *
685 if (!tbl[entry_ind].valid) {
712 tbl[entry_ind] = new_tbl_entry;
722 else if (tbl[entry_ind].ext_entry == 0) {
734 .next_hop = tbl[entry_ind].next_hop,
735 .depth = tbl[entry_ind].depth,
741 /* Populate new tbl8 with tbl value. */
751 * Update tbl entry to point to new tbl8 entry. Note: The
763 tbl[entry_ind] = new_tbl_entry;
770 *next_tbl_ind = tbl[entry_ind].lpm6_tbl8_gindex;
788 struct rte_lpm6_tbl_entry *tbl;
806 tbl = tbl_next;
807 ret = simulate_add_step(lpm, tbl, &tbl_next, masked_ip, 1,
826 struct rte_lpm6_tbl_entry *tbl;
854 tbl = lpm->tbl24;
855 status = add_step(lpm, tbl, TBL24_IND, &tbl_next, &tbl_next_num,
865 tbl = tbl_next;
866 status = add_step(lpm, tbl, tbl_next_num, &tbl_next,
881 lookup_step(const struct rte_lpm6 *lpm, const struct rte_lpm6_tbl_entry *tbl,
888 tbl_entry = *(const uint32_t *)tbl;
915 const struct rte_lpm6_tbl_entry *tbl;
929 tbl = &lpm->tbl24[tbl24_index];
933 status = lookup_step(lpm, tbl, &tbl_next, ip, first_byte++, next_hop);
934 tbl = tbl_next;
949 const struct rte_lpm6_tbl_entry *tbl;
965 tbl = &lpm->tbl24[tbl24_index];
971 status = lookup_step(lpm, tbl, &tbl_next, &ips[i],
973 tbl = tbl_next;
1171 struct rte_lpm6_tbl_entry *tbl = &lpm->tbl24[first_3bytes];
1172 assert(tbl->ext_entry == 1);
1174 uint32_t tbl_ind = tbl->lpm6_tbl8_gindex;
1175 tbl = &lpm->tbl8[tbl_ind *
1186 tbl += ip->a[byte];
1187 assert(tbl->ext_entry == 1);
1189 tbl_ind = tbl->lpm6_tbl8_gindex;
1190 tbl = &lpm->tbl8[tbl_ind *
1198 *from = &tbl[ind];
1200 *to = &tbl[ind];