| 572 | } |
| 573 | |
| 574 | static void |
| 575 | cli_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 | |
| 589 | static void |
| 590 | cli_ip4_addr(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused) |
nothing calls this directly
no test coverage detected