[v2,2/2] eventdev: add standard aliases for telemetry commands
Checks
Commit Message
Most other device classes in DPDK which offer telemetry provide a list
of the devices of that class via "/<class>/list", e.g. /ethdev/list,
/ring/list, /mempool/list. However, eventdev provided that list via
"dev_list" command. For consistency, add "list" as an alias for
"dev_list" - after all the "dev" is part of the initial "/eventdev"
prefix part, so should not need repeating.
Similarly for the "dev_info" command, provide an alias as just "info".
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
lib/eventdev/rte_eventdev.c | 9 +++++++++
1 file changed, 9 insertions(+)
@@ -2067,6 +2067,15 @@ RTE_INIT(eventdev_init_telemetry)
"Returns list of available eventdevs. Takes no parameters");
rte_telemetry_register_cmd("/eventdev/dev_info", handle_dev_info,
"Returns basic info about an eventdev. Parameter: DevID");
+
+ /* alias "dev_list" and "dev_info" as just "list" and "info" to match
+ * other categories, such as ethdev, ring, mempool etc.
+ */
+ rte_telemetry_register_cmd("/eventdev/list", handle_dev_list,
+ "Returns list of available eventdevs. Takes no parameters");
+ rte_telemetry_register_cmd("/eventdev/info", handle_dev_info,
+ "Returns basic info about an eventdev. Parameter: DevID");
+
rte_telemetry_register_cmd("/eventdev/port_list", handle_port_list,
"Returns list of available ports. Parameter: DevID");
rte_telemetry_register_cmd("/eventdev/queue_list", handle_queue_list,