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

Function cli_ethdev_prom_mode

dpdk/app/graph/ethdev.c:574–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574static void
575cli_ethdev_prom_mode(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused)
576{
577 struct ethdev_prom_mode_cmd_tokens *res = parsed_result;
578 bool enable = false;
579 int rc = -EINVAL;
580
581 if (!strcmp(res->enable, "on"))
582 enable = true;
583
584 rc = ethdev_prom_mode_config(res->dev, enable);
585 if (rc < 0)
586 printf(MSG_CMD_FAIL, res->cmd);
587}
588
589static void
590cli_ip4_addr(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused)

Callers

nothing calls this directly

Calls 3

strcmpFunction · 0.85
ethdev_prom_mode_configFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected