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

Function rte_node_from_name

dpdk/lib/graph/node.c:173–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173rte_node_t
174rte_node_from_name(const char *name)
175{
176 struct node *node;
177
178 STAILQ_FOREACH(node, &node_list, next)
179 if (strncmp(node->name, name, RTE_NODE_NAMESIZE) == 0)
180 return node->id;
181
182 return RTE_NODE_ID_INVALID;
183}
184
185char *
186rte_node_id_to_name(rte_node_t id)

Callers 8

graph_node_getFunction · 0.85
test_lookup_functionsFunction · 0.85
test_node_cloneFunction · 0.85
test_update_edgesFunction · 0.85
test_create_graphFunction · 0.85
graph_cluster_stats_cb_tFunction · 0.85

Calls 1

strncmpFunction · 0.85

Tested by 7

graph_node_getFunction · 0.68
test_lookup_functionsFunction · 0.68
test_node_cloneFunction · 0.68
test_update_edgesFunction · 0.68
test_create_graphFunction · 0.68
graph_cluster_stats_cb_tFunction · 0.68