| 351 | } |
| 352 | |
| 353 | void cmd_create_parsed(void *parsed_result, |
| 354 | struct cmdline *cl, |
| 355 | __rte_unused void *data) |
| 356 | { |
| 357 | struct rte_vdpa_device *dev; |
| 358 | struct cmd_create_result *res = parsed_result; |
| 359 | |
| 360 | rte_strscpy(vports[devcnt].ifname, res->socket_path, MAX_PATH_LEN); |
| 361 | dev = rte_vdpa_find_device_by_name(res->bdf); |
| 362 | if (dev == NULL) { |
| 363 | cmdline_printf(cl, "Unable to find vdpa device id for %s.\n", |
| 364 | res->bdf); |
| 365 | return; |
| 366 | } |
| 367 | |
| 368 | vports[devcnt].dev = dev; |
| 369 | |
| 370 | if (start_vdpa(&vports[devcnt]) == 0) |
| 371 | devcnt++; |
| 372 | } |
| 373 | |
| 374 | void cmd_stats_parsed(void *parsed_result, struct cmdline *cl, |
| 375 | __rte_unused void *data) |
nothing calls this directly
no test coverage detected