From dbab5118745f3a8d129beb470cf2ef7092e4a789 Mon Sep 17 00:00:00 2001 From: Jerin Jacob Date: Mon, 3 May 2021 22:04:28 +0530 Subject: [PATCH] telemetry: hide internal define Remove TELEMETRY_MAX_CALLBACKS symbol from the public rte_telemetry.h header file. Signed-off-by: Jerin Jacob Acked-by: Bruce Richardson Acked-by: Ciara Power --- lib/telemetry/rte_telemetry.h | 2 -- lib/telemetry/telemetry.c | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/telemetry/rte_telemetry.h b/lib/telemetry/rte_telemetry.h index 031db9e968..c08146e142 100644 --- a/lib/telemetry/rte_telemetry.h +++ b/lib/telemetry/rte_telemetry.h @@ -10,8 +10,6 @@ #ifndef _RTE_TELEMETRY_H_ #define _RTE_TELEMETRY_H_ -/** Maximum number of telemetry callbacks. */ -#define TELEMETRY_MAX_CALLBACKS 64 /** Maximum length for string used in object. */ #define RTE_TEL_MAX_STRING_LEN 64 /** Maximum length of string. */ diff --git a/lib/telemetry/telemetry.c b/lib/telemetry/telemetry.c index 386d0080bc..c06de45531 100644 --- a/lib/telemetry/telemetry.c +++ b/lib/telemetry/telemetry.c @@ -27,6 +27,9 @@ #define MAX_OUTPUT_LEN (1024 * 16) #define MAX_CONNECTIONS 10 +/** Maximum number of telemetry callbacks. */ +#define TELEMETRY_MAX_CALLBACKS 64 + #ifndef RTE_EXEC_ENV_WINDOWS static void * client_handler(void *socket); -- 2.20.1