From: Jerin Jacob Date: Mon, 3 May 2021 16:34:28 +0000 (+0530) Subject: telemetry: hide internal define X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=dbab5118745f3a8d129beb470cf2ef7092e4a789;p=dpdk.git 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 --- 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);