| 78 | } |
| 79 | |
| 80 | static struct rte_rib_node * |
| 81 | node_alloc(struct rte_rib *rib) |
| 82 | { |
| 83 | struct rte_rib_node *ent; |
| 84 | int ret; |
| 85 | |
| 86 | ret = rte_mempool_get(rib->node_pool, (void *)&ent); |
| 87 | if (unlikely(ret != 0)) |
| 88 | return NULL; |
| 89 | ++rib->cur_nodes; |
| 90 | return ent; |
| 91 | } |
| 92 | |
| 93 | static void |
| 94 | node_free(struct rte_rib *rib, struct rte_rib_node *ent) |
no test coverage detected