| 70 | } |
| 71 | |
| 72 | static inline struct rte_rib_node * |
| 73 | get_nxt_node(struct rte_rib_node *node, uint32_t ip) |
| 74 | { |
| 75 | if (node->depth == RIB_MAXDEPTH) |
| 76 | return NULL; |
| 77 | return (ip & (1 << (31 - node->depth))) ? node->right : node->left; |
| 78 | } |
| 79 | |
| 80 | static struct rte_rib_node * |
| 81 | node_alloc(struct rte_rib *rib) |
no outgoing calls
no test coverage detected