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

Function rte_node_edge_update

dpdk/lib/graph/node.c:293–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293rte_edge_t
294rte_node_edge_update(rte_node_t id, rte_edge_t from, const char **next_nodes,
295 uint16_t nb_edges)
296{
297 rte_edge_t rc = RTE_EDGE_ID_INVALID;
298 struct node *n, *prev;
299
300 NODE_ID_CHECK(id);
301 graph_spinlock_lock();
302
303 prev = NULL;
304 STAILQ_FOREACH(n, &node_list, next) {
305 if (n->id == id) {
306 rc = edge_update(n, prev, from, next_nodes, nb_edges);
307 break;
308 }
309 prev = n;
310 }
311
312 graph_spinlock_unlock();
313fail:
314 return rc;
315}
316
317static rte_node_t
318node_copy_edges(struct node *node, char *next_nodes[])

Callers 4

rte_node_eth_configFunction · 0.85
graph_initFunction · 0.85
test_update_edgesFunction · 0.85

Calls 3

graph_spinlock_lockFunction · 0.85
edge_updateFunction · 0.85
graph_spinlock_unlockFunction · 0.85

Tested by 2

graph_initFunction · 0.68
test_update_edgesFunction · 0.68