telemetry: fix passing full params string to command
authorCiara Power <ciara.power@intel.com>
Thu, 27 Aug 2020 08:39:22 +0000 (09:39 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Oct 2020 20:54:58 +0000 (22:54 +0200)
commit5514319e7b437a6a252e84d7d67d728f3082cd97
treea7df6e44c9e9a78c7d8d6bd35c4313562ae2dda5
parent40d64b33f7eac75ddb0e96cc90dc726de32d15b1
telemetry: fix passing full params string to command

Telemetry only passed the first param to the command handler if multiple
were entered by the user, separated by commas. Telemetry is required to
pass the full params string to the command, by splitting by a comma
delimiter only once to remove the command part of the string. This will
enable future commands to take multiple param values.

Fixes: b1ad0e124536 ("rawdev: add telemetry callbacks")
Fixes: c190daedb9b1 ("ethdev: add telemetry callbacks")
Fixes: 6dd571fd07c3 ("telemetry: introduce new functionality")
Cc: stable@dpdk.org
Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_ethdev/rte_ethdev.c
lib/librte_rawdev/rte_rawdev.c
lib/librte_telemetry/telemetry.c