| 653 | } |
| 654 | |
| 655 | static void |
| 656 | cli_ethdev(void *parsed_result, __rte_unused struct cmdline *cl, void *data __rte_unused) |
| 657 | { |
| 658 | struct ethdev_cmd_tokens *res = parsed_result; |
| 659 | struct ethdev_config config; |
| 660 | int rc; |
| 661 | |
| 662 | memset(&config, 0, sizeof(struct ethdev_config)); |
| 663 | config.rx.n_queues = res->nb_rxq; |
| 664 | config.rx.queue_size = ETHDEV_RX_DESC_DEFAULT; |
| 665 | memcpy(config.rx.mempool_name, res->mempool, strlen(res->mempool)); |
| 666 | |
| 667 | config.tx.n_queues = res->nb_txq; |
| 668 | config.tx.queue_size = ETHDEV_TX_DESC_DEFAULT; |
| 669 | |
| 670 | config.mtu = port_conf_default.rxmode.mtu; |
| 671 | |
| 672 | rc = ethdev_process(res->dev, &config); |
| 673 | if (rc < 0) |
| 674 | printf(MSG_CMD_FAIL, res->cmd); |
| 675 | } |
| 676 | |
| 677 | static void |
| 678 | cli_ethdev_help(__rte_unused void *parsed_result, __rte_unused struct cmdline *cl, |
nothing calls this directly
no test coverage detected