Some lib telemetry interfaces add the 'u32' and 'u64' data by the rte_tel_data_add_dict/array_int API. This may cause data conversion error or data truncation. This patch series uses 'u64' functions to do this.
In addition, this patch series introduces two APIs to store unsigned integer values as hexadecimal encoded strings in telemetry library. --- -v5: - drop a refactor patch. - no limit the bit width for xxx_uint_hex API. -v4: - remove 'u32' value type. - add padding zero for hexadecimal value -v3: fix a misspelling mistake in commit log. -v2: - fix ABI break warning. - introduce two APIs to store u32 and u64 values as hexadecimal encoded strings. Huisong Li (8): telemetry: move to header to controllable range ethdev: fix possible data truncation and conversion error mempool: fix possible data truncation and conversion error cryptodev: fix possible data conversion error mem: possible data truncation and conversion error telemetry: support adding integer value as hexadecimal test: add test cases for adding hex integer value API ethdev: display capability values in hexadecimal format app/test/test_telemetry_data.c | 150 +++++++++++++++++++++++++++++ lib/cryptodev/rte_cryptodev.c | 2 +- lib/eal/common/eal_common_memory.c | 10 +- lib/ethdev/rte_ethdev.c | 19 ++-- lib/mempool/rte_mempool.c | 24 ++--- lib/telemetry/rte_telemetry.h | 52 +++++++++- lib/telemetry/telemetry_data.c | 74 ++++++++++++++ lib/telemetry/version.map | 9 ++ 8 files changed, 310 insertions(+), 30 deletions(-) -- 2.33.0