| 369 | } |
| 370 | |
| 371 | static void |
| 372 | parse_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 | |
| 388 | static int |
| 389 | parse_portmask(const char *portmask) |
no test coverage detected