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

Function node_alloc

dpdk/lib/rib/rte_rib.c:80–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static struct rte_rib_node *
81node_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
93static void
94node_free(struct rte_rib *rib, struct rte_rib_node *ent)

Callers 1

rte_rib_insertFunction · 0.70

Calls 1

rte_mempool_getFunction · 0.85

Tested by

no test coverage detected