diff options
author | Florin Coras <fcoras@cisco.com> | 2019-04-19 15:56:00 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-04-24 11:31:55 +0000 |
commit | 4375fa312e91ffeef0d34ab0594bda4a8c9189ea (patch) | |
tree | abd9fce225e8bd351f53d36d446fe61ec107dbc2 /src/vppinfra/rbtree.c | |
parent | d35d4232953aa32a27a5a1024377191360441416 (diff) |
svm: fifo ooo reads/writes with multiple chunks
Change-Id: If23a04623a7138c9f6c98ee9ecfa587396618a60
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vppinfra/rbtree.c')
-rw-r--r-- | src/vppinfra/rbtree.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/vppinfra/rbtree.c b/src/vppinfra/rbtree.c index 3770c2304ff..95e9d10967b 100644 --- a/src/vppinfra/rbtree.c +++ b/src/vppinfra/rbtree.c @@ -20,24 +20,6 @@ #include <vppinfra/rbtree.h> -static inline rb_node_t * -rb_node_right (rb_tree_t * rt, rb_node_t * n) -{ - return pool_elt_at_index (rt->nodes, n->right); -} - -static inline rb_node_t * -rb_node_left (rb_tree_t * rt, rb_node_t * n) -{ - return pool_elt_at_index (rt->nodes, n->left); -} - -static inline rb_node_t * -rb_node_parent (rb_tree_t * rt, rb_node_t * n) -{ - return pool_elt_at_index (rt->nodes, n->parent); -} - static inline void rb_tree_rotate_left (rb_tree_t * rt, rb_node_t * x) { @@ -188,7 +170,7 @@ rb_tree_add (rb_tree_t * rt, u32 key) } rb_node_index_t -rb_tree_add2 (rb_tree_t * rt, u32 key, u32 opaque) +rb_tree_add2 (rb_tree_t * rt, u32 key, uword opaque) { rb_node_t *n; |