Skip to contentSkip to conversation

telemetry: cleanup internal header

PATCH Applied David Marchand 4 participants 5 messages Mar 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 telemetry: cleanup internal header

The experimental banner can be removed.
Every in-tree file is compiled with _GNU_SOURCE, so RTE_HAS_CPUSET is unneeded for an internal header.

Fixes 0e64ae618e10 ("telemetry: move init function to internal header")
---
 lib/librte_telemetry/rte_telemetry.h      | 1 -
 lib/librte_telemetry/telemetry_internal.h | 9 ++-------
 2 files changed, 2 insertions(+), 8 deletions(-)
lib/librte_telemetry/rte_telemetry.h +0 -1
index fd57718c26..031db9e968 100644
@@ -6,7 +6,6 @@
 #include <sched.h>
 
 #include <rte_compat.h>
-#include <rte_os.h>
 
 #ifndef _RTE_TELEMETRY_H_
 #define _RTE_TELEMETRY_H_
lib/librte_telemetry/telemetry_internal.h +2 -7
index 6c52006040..d085c492dc 100644
@@ -6,13 +6,12 @@
 #define _RTE_TELEMETRY_INTERNAL_H_
 
 #include <rte_compat.h>
+#include <rte_os.h>
 #include "rte_telemetry.h"
 
 /**
  * @internal
- * @warning
- * @b EXPERIMENTAL: this API may change without prior notice
-
+ *
  * @file
  * RTE Telemetry Legacy and internal definitions
  *
@@ -84,8 +83,6 @@ rte_telemetry_legacy_register(const char *cmd,
 		enum rte_telemetry_legacy_data_req data_req,
 		telemetry_legacy_cb fn);
 
-#ifdef RTE_HAS_CPUSET
-
 /**
  * @internal
  * Log function type, to allow passing as parameter if necessary
@@ -115,6 +112,4 @@ int
 rte_telemetry_init(const char *runtime_dir, const char *rte_version, rte_cpuset_t *cpuset,
 		rte_log_fn log_fn, uint32_t registered_logtype);
 
-#endif /* RTE_HAS_CPUSET */
-
 #endif
Signature · 1 line
2.23.0
#2 lore raw
Quoted 5 lines · Thomas Monjalon

26/03/2021 09:24, David Marchand:

Quoted 4 lines

The experimental banner can be removed.
Every in-tree file is compiled with _GNU_SOURCE, so RTE_HAS_CPUSET is unneeded for an internal header.

Quoted 8 lines
Quoted 3 lines
Fixes 0e64ae618e10 ("telemetry: move init function to internal header")

good catches, thank you

+1 thanks.

Acked-by
#3 lore raw
Quoted 18 lines

-----Original Message-----
From: Richardson, Bruce <[email protected]>
Sent: Friday 26 March 2021 10:32
To: Thomas Monjalon <[email protected]>
Cc: David Marchand <[email protected]>; [email protected]; Power, Ciara <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] telemetry: cleanup internal header

Quoted 8 lines · Thomas Monjalon

26/03/2021 09:24, David Marchand:

Quoted 7 lines

The experimental banner can be removed.
Every in-tree file is compiled with _GNU_SOURCE, so RTE_HAS_CPUSET is unneeded for an internal header.

Fixes 0e64ae618e10 ("telemetry: move init function to internal

header")

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

good catches, thank you

+1 thanks.

Thanks David,

author Acked-by Thomas Monjalon Acked-by Bruce Richardson Acked-by Ciara Power on v1 1/1 Applied
#4 lore raw
In reply to David Marchand
Quoted 8 lines · David Marchand

The experimental banner can be removed.
Every in-tree file is compiled with _GNU_SOURCE, so RTE_HAS_CPUSET is unneeded for an internal header.

Fixes 0e64ae618e10 ("telemetry: move init function to internal header")

Applied.

Signature · 1 line
David Marchand