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

Function graph_node_edges_add

dpdk/lib/graph/graph.c:140–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140static int
141graph_node_edges_add(struct graph *graph)
142{
143 struct graph_node *graph_node;
144 struct node *adjacency;
145 const char *next;
146 rte_edge_t i;
147
148 STAILQ_FOREACH(graph_node, &graph->node_list, next) {
149 for (i = 0; i < graph_node->node->nb_edges; i++) {
150 next = graph_node->node->next_nodes[i];
151 adjacency = node_from_name(next);
152 if (adjacency == NULL)
153 SET_ERR_JMP(EINVAL, fail,
154 "Node %s not registered", next);
155 if (graph_node_add(graph, adjacency))
156 goto fail;
157 }
158 }
159 return 0;
160fail:
161 return -rte_errno;
162}
163
164static int
165graph_adjacency_list_update(struct graph *graph)

Callers 1

rte_graph_createFunction · 0.85

Calls 2

node_from_nameFunction · 0.85
graph_node_addFunction · 0.85

Tested by

no test coverage detected