* Init a tbl8 header */
| 554 | * Init a tbl8 header |
| 555 | */ |
| 556 | static inline void |
| 557 | init_tbl8_header(struct rte_lpm6 *lpm, uint32_t tbl_ind, |
| 558 | uint32_t owner_tbl_ind, uint32_t owner_entry_ind) |
| 559 | { |
| 560 | struct rte_lpm_tbl8_hdr *tbl_hdr = &lpm->tbl8_hdrs[tbl_ind]; |
| 561 | tbl_hdr->owner_tbl_ind = owner_tbl_ind; |
| 562 | tbl_hdr->owner_entry_ind = owner_entry_ind; |
| 563 | tbl_hdr->ref_cnt = 0; |
| 564 | } |
| 565 | |
| 566 | /* |
| 567 | * Calculate index to the table based on the number and position |