| 258 | } |
| 259 | |
| 260 | static void |
| 261 | cli_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 | |
| 282 | static int |
| 283 | graph_config_add(char *usecases, struct graph_config *config) |
nothing calls this directly
no test coverage detected