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

Function cmd_create_parsed

dpdk/examples/vdpa/main.c:353–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353void 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
374void cmd_stats_parsed(void *parsed_result, struct cmdline *cl,
375 __rte_unused void *data)

Callers

nothing calls this directly

Calls 4

rte_strscpyFunction · 0.85
cmdline_printfFunction · 0.85
start_vdpaFunction · 0.85

Tested by

no test coverage detected