| 100 | } |
| 101 | |
| 102 | static void |
| 103 | cli_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 | |
| 117 | cmdline_parse_token_string_t ethdev_rx_cmd = |
| 118 | TOKEN_STRING_INITIALIZER(struct ethdev_rx_cmd_tokens, cmd, "ethdev_rx"); |
nothing calls this directly
no test coverage detected