|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
42 else if (xp->
left == xi)
69 else if (yp->
right == yi)
211 if (ltfn (z->
key, x->
key))
220 else if (ltfn (z->
key, y->
key))
322 rb_node_t *x, *y, *yr, *yl, *xp, *w, *wl, *wr;
326 y_original_color = y->
color;
341 y_original_color = y->
color;
__clib_export u32 rb_tree_n_nodes(rb_tree_t *rt)
static rb_node_t * rb_node(rb_tree_t *rt, rb_node_index_t ri)
#define RBTREE_TNIL_INDEX
static rb_node_t * rb_node_left(rb_tree_t *rt, rb_node_t *n)
int(* rb_tree_lt_fn)(u32 a, u32 b)
static void rb_tree_del_node_internal(rb_tree_t *rt, rb_node_t *z)
__clib_export rb_node_index_t rb_tree_add(rb_tree_t *rt, u32 key)
#define pool_put(P, E)
Free an object E in pool P.
enum rb_tree_color_ rb_node_color_t
static void rb_tree_fixup_inline(rb_tree_t *rt, rb_node_t *y, rb_node_t *z)
static void rb_tree_transplant(rb_tree_t *rt, rb_node_t *u, rb_node_t *v)
__clib_export void rb_tree_del_custom(rb_tree_t *rt, u32 key, rb_tree_lt_fn ltfn)
rb_node_index_t left
left child index
static void rb_tree_rotate_left(rb_tree_t *rt, rb_node_t *x)
static void rb_tree_rotate_right(rb_tree_t *rt, rb_node_t *y)
uword opaque
value stored by node
static rb_node_index_t rb_node_index(rb_tree_t *rt, rb_node_t *n)
__clib_export rb_node_t * rb_tree_predecessor(rb_tree_t *rt, rb_node_t *x)
static rb_node_t * rb_node_parent(rb_tree_t *rt, rb_node_t *n)
rb_node_index_t parent
parent index
__clib_export rb_node_t * rb_tree_search_subtree_custom(rb_tree_t *rt, rb_node_t *x, u32 key, rb_tree_lt_fn ltfn)
__clib_export int rb_tree_is_init(rb_tree_t *rt)
__clib_export rb_node_index_t rb_tree_add2(rb_tree_t *rt, u32 key, uword opaque)
__clib_export rb_node_t * rb_tree_max_subtree(rb_tree_t *rt, rb_node_t *x)
__clib_export void rb_tree_init(rb_tree_t *rt)
__clib_export rb_node_index_t rb_tree_add_custom(rb_tree_t *rt, u32 key, uword opaque, rb_tree_lt_fn ltfn)
static uword pool_elts(void *v)
Number of active elements in a pool.
__clib_export void rb_tree_del_node(rb_tree_t *rt, rb_node_t *z)
__clib_export rb_node_t * rb_tree_search_subtree(rb_tree_t *rt, rb_node_t *x, u32 key)
rb_node_index_t right
right child index
static void rb_tree_insert(rb_tree_t *rt, rb_node_t *z)
#define pool_get_zero(P, E)
Allocate an object E from a pool P and zero it.
vnet_interface_output_runtime_t * rt
__clib_export void rb_tree_free_nodes(rb_tree_t *rt)
#define pool_free(p)
Free a pool.
static rb_node_t * rb_node_right(rb_tree_t *rt, rb_node_t *n)
__clib_export void rb_tree_del(rb_tree_t *rt, u32 key)
__clib_export rb_node_t * rb_tree_min_subtree(rb_tree_t *rt, rb_node_t *x)
__clib_export rb_node_t * rb_tree_successor(rb_tree_t *rt, rb_node_t *x)
static u8 rb_node_is_tnil(rb_tree_t *rt, rb_node_t *n)