telemetry: fix JSON output buffer length
authorGowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
Mon, 11 Oct 2021 10:54:43 +0000 (16:24 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 13 Oct 2021 16:17:24 +0000 (18:17 +0200)
commitb76731683b048337d853cca4fa1530218b82aa40
tree037123266122478b98a11c39003073506eb0fff7
parent0faa4cfc50275751a86ed17147175c78a36f0da2
telemetry: fix JSON output buffer length

Earlier, JSON message length was limited to 1024 which would not
allow data more than this size. Removed this limitation by creating
output buffer based on requested data length.

Fixes: 52af6ccb2b39 ("telemetry: add utility functions for creating JSON")
Cc: stable@dpdk.org
Signed-off-by: Gowrishankar Muthukrishnan <gmuthukrishn@marvell.com>
Acked-by: Ciara Power <ciara.power@intel.com>
lib/telemetry/telemetry_json.h