42 #include <rte_compat.h>
49 #define RTE_LPM6_MAX_DEPTH 128
50 #define RTE_LPM6_IPV6_ADDR_SIZE 16
52 #define RTE_LPM6_NAMESIZE 32
126 rte_lpm6_add(
struct rte_lpm6 *lpm, uint8_t *ip, uint8_t depth,
129 rte_lpm6_add_v20(
struct rte_lpm6 *lpm, uint8_t *ip, uint8_t depth,
132 rte_lpm6_add_v1705(
struct rte_lpm6 *lpm, uint8_t *ip, uint8_t depth,
154 rte_lpm6_is_rule_present_v20(
struct rte_lpm6 *lpm, uint8_t *ip, uint8_t depth,
157 rte_lpm6_is_rule_present_v1705(
struct rte_lpm6 *lpm, uint8_t *ip, uint8_t depth,
191 uint8_t ips[][RTE_LPM6_IPV6_ADDR_SIZE], uint8_t *depths,
unsigned n);
215 rte_lpm6_lookup(
const struct rte_lpm6 *lpm, uint8_t *ip, uint32_t *next_hop);
217 rte_lpm6_lookup_v20(
const struct rte_lpm6 *lpm, uint8_t *ip, uint8_t *next_hop);
219 rte_lpm6_lookup_v1705(
const struct rte_lpm6 *lpm, uint8_t *ip,
240 uint8_t ips[][RTE_LPM6_IPV6_ADDR_SIZE],
241 int32_t *next_hops,
unsigned int n);
243 rte_lpm6_lookup_bulk_func_v20(
const struct rte_lpm6 *lpm,
244 uint8_t ips[][RTE_LPM6_IPV6_ADDR_SIZE],
245 int16_t *next_hops,
unsigned int n);
247 rte_lpm6_lookup_bulk_func_v1705(
const struct rte_lpm6 *lpm,
248 uint8_t ips[][RTE_LPM6_IPV6_ADDR_SIZE],
249 int32_t *next_hops,
unsigned int n);