MCPcopy Create free account
hub / github.com/F-Stack/f-stack / init_tbl8_header

Function init_tbl8_header

dpdk/lib/lpm/rte_lpm6.c:556–564  ·  view source on GitHub ↗

* Init a tbl8 header */

Source from the content-addressed store, hash-verified

554 * Init a tbl8 header
555 */
556static inline void
557init_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

Callers 1

add_stepFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected