59 static inline uint32_t
62 return (uint32_t)(UINT64_MAX << (32 - depth));
76 CNDP_API
struct cne_rib_node *
cne_rib_lookup(
struct cne_rib *rib, uint32_t ip);
128 CNDP_API
struct cne_rib_node *
cne_rib_get_nxt(
struct cne_rib *rib, uint32_t ip, uint8_t depth,
129 struct cne_rib_node *last,
int flag);
156 CNDP_API
struct cne_rib_node *
cne_rib_insert(
struct cne_rib *rib, uint32_t ip, uint8_t depth);
CNDP_API struct cne_rib_node * cne_rib_lookup_parent(struct cne_rib_node *ent)
CNDP_API int cne_rib_get_depth(const struct cne_rib_node *node, uint8_t *depth)
CNDP_API struct cne_rib_node * cne_rib_insert(struct cne_rib *rib, uint32_t ip, uint8_t depth)
CNDP_API int cne_rib_get_nh(const struct cne_rib_node *node, uint64_t *nh)
CNDP_API int cne_rib_get_ip(const struct cne_rib_node *node, uint32_t *ip)
CNDP_API void * cne_rib_get_ext(struct cne_rib_node *node)
CNDP_API struct cne_rib_node * cne_rib_get_nxt(struct cne_rib *rib, uint32_t ip, uint8_t depth, struct cne_rib_node *last, int flag)
CNDP_API struct cne_rib * cne_rib_create(const char *name, const struct cne_rib_conf *conf)
CNDP_API int cne_rib_set_nh(struct cne_rib_node *node, uint64_t nh)
static uint32_t cne_rib_depth_to_mask(uint8_t depth)
CNDP_API void cne_rib_free(struct cne_rib *rib)
CNDP_API void cne_rib_remove(struct cne_rib *rib, uint32_t ip, uint8_t depth)
CNDP_API struct cne_rib_node * cne_rib_lookup_exact(struct cne_rib *rib, uint32_t ip, uint8_t depth)
CNDP_API struct cne_rib_node * cne_rib_lookup(struct cne_rib *rib, uint32_t ip)