telemetry: mark init function as internal-only
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 5 Feb 2021 21:23:57 +0000 (21:23 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 9 Feb 2021 12:36:45 +0000 (13:36 +0100)
The "rte_telemetry_init()" function is for use by "rte_eal_init()" and
should not be part of the public API. Mark it as internal only.

Fixes: 6dd571fd07c3 ("telemetry: introduce new functionality")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
doc/guides/rel_notes/release_21_02.rst
lib/librte_telemetry/rte_telemetry.h
lib/librte_telemetry/version.map

index baf3215..84b04a0 100644 (file)
@@ -266,6 +266,11 @@ ABI Changes
 
 * No ABI change that would break compatibility with 20.11.
 
+* The experimental function ``rte_telemetry_init`` has been removed from the
+  public API and is now an internal-only function. Where telemetry library is
+  available, it is called automatically from ``rte_eal_init()`` and so no end
+  application need use it.
+
 
 Known Issues
 ------------
index 7617222..f8e54dc 100644 (file)
@@ -309,7 +309,7 @@ rte_telemetry_register_cmd(const char *cmd, telemetry_cb fn, const char *help);
  * @return
  *  -1 on failure.
  */
-__rte_experimental
+__rte_internal
 int
 rte_telemetry_init(const char *runtime_dir, rte_cpuset_t *cpuset,
                const char **err_str);
index d1dbf8d..ec0ebc1 100644 (file)
@@ -14,9 +14,12 @@ EXPERIMENTAL {
        rte_tel_data_start_array;
        rte_tel_data_start_dict;
        rte_tel_data_string;
-       rte_telemetry_init;
        rte_telemetry_legacy_register;
        rte_telemetry_register_cmd;
 
        local: *;
 };
+
+INTERNAL {
+       rte_telemetry_init;
+};