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

Function parse_worker_model

dpdk/examples/l3fwd-graph/main.c:371–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371static void
372parse_worker_model(const char *model)
373{
374 if (strcmp(model, WORKER_MODEL_MCORE_DISPATCH) == 0)
375 model_conf = RTE_GRAPH_MODEL_MCORE_DISPATCH;
376 else if (strcmp(model, WORKER_MODEL_RTC) == 0)
377 model_conf = RTE_GRAPH_MODEL_RTC;
378 else
379 rte_exit(EXIT_FAILURE, "Invalid worker model: %s", model);
380
381#if defined(RTE_GRAPH_MODEL_SELECT)
382 if (model_conf != RTE_GRAPH_MODEL_SELECT)
383 printf("Warning: model mismatch, will use the RTE_GRAPH_MODEL_SELECT model\n");
384 model_conf = RTE_GRAPH_MODEL_SELECT;
385#endif
386}
387
388static int
389parse_portmask(const char *portmask)

Callers 1

parse_argsFunction · 0.85

Calls 3

strcmpFunction · 0.85
rte_exitFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected