MCPcopy Create free account
hub / github.com/F-Stack/f-stack / node_alloc

Function node_alloc

dpdk/lib/rib/rte_rib6.c:111–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111static struct rte_rib6_node *
112node_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
124static void
125node_free(struct rte_rib6 *rib, struct rte_rib6_node *ent)

Callers 1

rte_rib6_insertFunction · 0.70

Calls 1

rte_mempool_getFunction · 0.85

Tested by

no test coverage detected