Lines Matching defs:dp
48 get_tbl24_p(struct dir24_8_tbl *dp, uint32_t ip, uint8_t nh_sz)
50 return (void *)&((uint8_t *)dp->tbl24)[(ip &
97 get_tbl24(struct dir24_8_tbl *dp, uint32_t ip, uint8_t nh_sz)
99 return ((dp->tbl24[get_tbl_idx(get_tbl24_idx(ip), nh_sz)] >>
105 get_tbl8(struct dir24_8_tbl *dp, uint32_t res, uint32_t ip, uint8_t nh_sz)
107 return ((dp->tbl8[get_tbl_idx(get_tbl8_idx(res, ip), nh_sz)] >>
122 struct dir24_8_tbl *dp = (struct dir24_8_tbl *)p; \
129 rte_prefetch0(get_tbl24_p(dp, ips[i], nh_sz)); \
131 rte_prefetch0(get_tbl24_p(dp, \
133 tmp = ((type *)dp->tbl24)[ips[i] >> 8]; \
135 tmp = ((type *)dp->tbl8)[(uint8_t)ips[i] + \
140 tmp = ((type *)dp->tbl24)[ips[i] >> 8]; \
142 tmp = ((type *)dp->tbl8)[(uint8_t)ips[i] + \
154 dir24_8_lookup_bulk(struct dir24_8_tbl *dp, const uint32_t *ips,
162 rte_prefetch0(get_tbl24_p(dp, ips[i], nh_sz));
164 rte_prefetch0(get_tbl24_p(dp, ips[i + prefetch_offset],
166 tmp = get_tbl24(dp, ips[i], nh_sz);
168 tmp = get_tbl8(dp, tmp, ips[i], nh_sz);
173 tmp = get_tbl24(dp, ips[i], nh_sz);
175 tmp = get_tbl8(dp, tmp, ips[i], nh_sz);
185 struct dir24_8_tbl *dp = (struct dir24_8_tbl *)p;
187 dir24_8_lookup_bulk(dp, ips, next_hops, n, 0);
194 struct dir24_8_tbl *dp = (struct dir24_8_tbl *)p;
196 dir24_8_lookup_bulk(dp, ips, next_hops, n, 1);
203 struct dir24_8_tbl *dp = (struct dir24_8_tbl *)p;
205 dir24_8_lookup_bulk(dp, ips, next_hops, n, 2);
212 struct dir24_8_tbl *dp = (struct dir24_8_tbl *)p;
214 dir24_8_lookup_bulk(dp, ips, next_hops, n, 3);
221 struct dir24_8_tbl *dp = (struct dir24_8_tbl *)p;
225 uint8_t nh_sz = dp->nh_sz;
228 rte_prefetch0(get_tbl24_p(dp, ips[i], nh_sz));
230 rte_prefetch0(get_tbl24_p(dp, ips[i + prefetch_offset],
232 tmp = get_tbl24(dp, ips[i], nh_sz);
234 tmp = get_tbl8(dp, tmp, ips[i], nh_sz);
239 tmp = get_tbl24(dp, ips[i], nh_sz);
241 tmp = get_tbl8(dp, tmp, ips[i], nh_sz);
303 dir24_8_rcu_qsbr_add(struct dir24_8_tbl *dp, struct rte_fib_rcu_config *cfg,