| 1702 | } |
| 1703 | |
| 1704 | static int |
| 1705 | handle_dev_list(const char *cmd __rte_unused, |
| 1706 | const char *params __rte_unused, |
| 1707 | struct rte_tel_data *d) |
| 1708 | { |
| 1709 | uint8_t dev_id; |
| 1710 | int ndev = rte_event_dev_count(); |
| 1711 | |
| 1712 | if (ndev < 1) |
| 1713 | return -1; |
| 1714 | |
| 1715 | rte_tel_data_start_array(d, RTE_TEL_INT_VAL); |
| 1716 | for (dev_id = 0; dev_id < RTE_EVENT_MAX_DEVS; dev_id++) { |
| 1717 | if (rte_eventdevs[dev_id].attached == |
| 1718 | RTE_EVENTDEV_ATTACHED) |
| 1719 | rte_tel_data_add_array_int(d, dev_id); |
| 1720 | } |
| 1721 | |
| 1722 | return 0; |
| 1723 | } |
| 1724 | |
| 1725 | static int |
| 1726 | handle_port_list(const char *cmd __rte_unused, |
nothing calls this directly
no test coverage detected