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

Function __rte_node_stream_alloc

dpdk/lib/graph/graph.c:688–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686}
687
688void __rte_noinline
689__rte_node_stream_alloc(struct rte_graph *graph, struct rte_node *node)
690{
691 uint16_t size = node->size;
692
693 RTE_VERIFY(size != UINT16_MAX);
694 /* Allocate double amount of size to avoid immediate realloc */
695 size = RTE_MIN(UINT16_MAX, RTE_MAX(RTE_GRAPH_BURST_SIZE, size * 2));
696 node->objs = rte_realloc_socket(node->objs, size * sizeof(void *),
697 RTE_CACHE_LINE_SIZE, graph->socket);
698 RTE_VERIFY(node->objs);
699 node->size = size;
700 node->realloc_count++;
701}
702
703void __rte_noinline
704__rte_node_stream_alloc_size(struct rte_graph *graph, struct rte_node *node,

Callers 2

graph_nodes_populateFunction · 0.85
graph_src_nodes_populateFunction · 0.85

Calls 1

rte_realloc_socketFunction · 0.85

Tested by

no test coverage detected