usertools: fix telemetry client with python 3
authorCiara Power <ciara.power@intel.com>
Tue, 21 Jan 2020 17:03:10 +0000 (17:03 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 16 Feb 2020 21:23:20 +0000 (22:23 +0100)
commitaf927da4d7d23f1050f23caf55f4ac2a995ab244
tree2e6b88df012948c71ac0d07e4c8c9ecc09f1fa5b
parente1766e7b0c9b4ad30b330677f2376a05b3b46f0c
usertools: fix telemetry client with python 3

The client script for use with the telemetry library did not support
Python3, as the data being sent over the socket was in string format.
Python3 requires the data be explicitly converted to bytes before being
sent. Similarly, the received bytes need to be decoded into string
format.

Fixes: 53f293c9a783 ("usertools: replace unsafe input function")
Fixes: fe35622659ed ("usertools: fix telemetry client with python 3")
Fixes: d1b94da4a4e0 ("usertools: add client script for telemetry")
Fixes: 4080e46c8078 ("telemetry: support global metrics")
Cc: stable@dpdk.org
Signed-off-by: Ciara Power <ciara.power@intel.com>
Reviewed-by: Robin Jarry <robin.jarry@6wind.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
usertools/dpdk-telemetry-client.py