| 1619 | }; |
| 1620 | |
| 1621 | static void |
| 1622 | cmd_config_loopback_specific_parsed(void *parsed_result, |
| 1623 | __rte_unused struct cmdline *cl, |
| 1624 | __rte_unused void *data) |
| 1625 | { |
| 1626 | struct cmd_config_loopback_specific *res = parsed_result; |
| 1627 | |
| 1628 | if (port_id_is_invalid(res->port_id, ENABLED_WARN)) |
| 1629 | return; |
| 1630 | |
| 1631 | if (!port_is_stopped(res->port_id)) { |
| 1632 | fprintf(stderr, "Please stop port %u first\n", res->port_id); |
| 1633 | return; |
| 1634 | } |
| 1635 | |
| 1636 | ports[res->port_id].dev_conf.lpbk_mode = res->mode; |
| 1637 | |
| 1638 | cmd_reconfig_device_queue(res->port_id, 1, 1); |
| 1639 | } |
| 1640 | |
| 1641 | |
| 1642 | static cmdline_parse_token_string_t cmd_config_loopback_specific_port = |
nothing calls this directly
no test coverage detected