Skip to contentSkip to conversation

telemetry: fix docstring of RTE_TEL_INT_VAL

PATCH Applied Robin Jarry 4 participants 4 messages Feb 7, 2023 – Feb 9, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 telemetry: fix docstring of RTE_TEL_INT_VAL

The doc string was left to its previous definition. Make it explicit that RTE_TEL_INT_VAL is a 64-bit signed integer.

Fixes 8e639c7c50cc ("telemetry: use 64-bit signed values in API")
---
 lib/telemetry/rte_telemetry.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/telemetry/rte_telemetry.h +1 -1
index ad712732be04..d8ea97f17395 100644
@@ -43,7 +43,7 @@ struct rte_tel_data;
  */
 enum rte_tel_value_type {
 	RTE_TEL_STRING_VAL, /** a string value */
-	RTE_TEL_INT_VAL,    /** a signed 32-bit int value */
+	RTE_TEL_INT_VAL,    /** a signed 64-bit int value */
 	RTE_TEL_UINT_VAL,  /** an unsigned 64-bit int value */
 	RTE_TEL_CONTAINER, /** a container struct */
 };
Signature · 1 line
2.39.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 28 lines

From: Robin Jarry [mailto:[email protected]]
Sent: Tuesday, 7 February 2023 09.47

The doc string was left to its previous definition. Make it explicit that RTE_TEL_INT_VAL is a 64-bit signed integer.

Fixes 8e639c7c50cc ("telemetry: use 64-bit signed values in API")
---
 lib/telemetry/rte_telemetry.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/telemetry/rte_telemetry.h +1 -2
index ad712732be04..d8ea97f17395 100644
@@ -43,7 +43,7 @@ struct rte_tel_data;
  */
 enum rte_tel_value_type {
 	RTE_TEL_STRING_VAL, /** a string value */
-	RTE_TEL_INT_VAL,    /** a signed 32-bit int value */
+	RTE_TEL_INT_VAL,    /** a signed 64-bit int value */
 	RTE_TEL_UINT_VAL,  /** an unsigned 64-bit int value */
 	RTE_TEL_CONTAINER, /** a container struct */
 };
--
Quoted 2 lines

2.39.1

Yes, this value type has changed as the comment reflects.

We could consider adding a note that the value does not exceed 32-bit when using API version 23, because the "set" functions in API version 23 only take a 32-bit value parameter. But such a note will be purely informative, and would probably add more confusion than information.

Acked-by on v1 1/1
#2 lore raw
In reply to Robin Jarry
Quoted 15 lines · Robin Jarry

The doc string was left to its previous definition. Make it explicit that RTE_TEL_INT_VAL is a 64-bit signed integer.

Fixes 8e639c7c50cc ("telemetry: use 64-bit signed values in API")
---
 lib/telemetry/rte_telemetry.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/telemetry/rte_telemetry.h +0 -0
index ad712732be04..d8ea97f17395 100644

lib/telemetry/rte_telemetry.h struct rte_tel_data; · line 49

Quoted 8 lines
lib/telemetry/rte_telemetry.h +1 -1
@@ -43,7 +43,7 @@ struct rte_tel_data;
  */
 enum rte_tel_value_type {
 	RTE_TEL_STRING_VAL, /** a string value */
-	RTE_TEL_INT_VAL,    /** a signed 32-bit int value */
+	RTE_TEL_INT_VAL,    /** a signed 64-bit int value */
 	RTE_TEL_UINT_VAL,  /** an unsigned 64-bit int value */
 	RTE_TEL_CONTAINER, /** a container struct */
 };

Thanks for catching this.