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

Function cli_graph_start

dpdk/app/graph/graph.c:260–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260static void
261cli_graph_start(__rte_unused void *parsed_result, __rte_unused struct cmdline *cl,
262 __rte_unused void *data)
263{
264 struct rte_node_ethdev_config *conf;
265 uint32_t nb_graphs = 0, nb_conf, i;
266 int rc = -EINVAL;
267
268 conf = graph_rxtx_node_config_get(&nb_conf, &nb_graphs);
269 for (i = 0; i < MAX_GRAPH_USECASES; i++) {
270 if (!strcmp(graph_config.usecases[i].name, "l3fwd")) {
271 if (graph_config.usecases[i].enabled) {
272 rc = usecase_l3fwd_configure(conf, nb_conf, nb_graphs);
273 break;
274 }
275 }
276 }
277
278 if (!rc)
279 graph_started = true;
280}
281
282static int
283graph_config_add(char *usecases, struct graph_config *config)

Callers

nothing calls this directly

Calls 3

strcmpFunction · 0.85
usecase_l3fwd_configureFunction · 0.85

Tested by

no test coverage detected