| 109 | } |
| 110 | |
| 111 | static struct rte_rib6_node * |
| 112 | node_alloc(struct rte_rib6 *rib) |
| 113 | { |
| 114 | struct rte_rib6_node *ent; |
| 115 | int ret; |
| 116 | |
| 117 | ret = rte_mempool_get(rib->node_pool, (void *)&ent); |
| 118 | if (unlikely(ret != 0)) |
| 119 | return NULL; |
| 120 | ++rib->cur_nodes; |
| 121 | return ent; |
| 122 | } |
| 123 | |
| 124 | static void |
| 125 | node_free(struct rte_rib6 *rib, struct rte_rib6_node *ent) |
no test coverage detected