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

Function cli_ethdev_rx

dpdk/app/graph/ethdev_rx.c:102–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102static void
103cli_ethdev_rx(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused)
104{
105 struct ethdev_rx_cmd_tokens *res = parsed_result;
106 int rc = -EINVAL;
107
108 rc = ethdev_rx_map_add(res->dev, res->qid, res->core_id);
109 if (rc < 0) {
110 cli_exit();
111 printf(MSG_CMD_FAIL, res->cmd);
112 rte_exit(EXIT_FAILURE, "input core is Invalid\n");
113 }
114
115}
116
117cmdline_parse_token_string_t ethdev_rx_cmd =
118 TOKEN_STRING_INITIALIZER(struct ethdev_rx_cmd_tokens, cmd, "ethdev_rx");

Callers

nothing calls this directly

Calls 4

ethdev_rx_map_addFunction · 0.85
cli_exitFunction · 0.85
rte_exitFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected