代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/dpdk 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From e2015dc88edc684c588b23c6b263aab7879b3d28 Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson@intel.com>
Date: Thu, 12 Jan 2023 17:41:13 +0000
Subject: telemetry: mark u64 functions as deprecated
[ upstream commit b2fafe2d3f4229abd05eb9e517565c0cc5da443e ]
Add a deprecation notice for the renaming of the telemetry data u64/uint
functions, and point users to the newer versions of them when building.
To do this, we also need to mark the renamed versions as stable, rather
than experimental.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Ciara Power <ciara.power@intel.com>
---
doc/guides/rel_notes/deprecation.rst | 5 +++++
lib/telemetry/rte_telemetry.h | 9 +++++----
lib/telemetry/version.map | 4 ++--
3 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
index 5581822..67dadda 100644
--- a/doc/guides/rel_notes/deprecation.rst
+++ b/doc/guides/rel_notes/deprecation.rst
@@ -14,6 +14,11 @@ Deprecation Notices
* kvargs: The function ``rte_kvargs_process`` will get a new parameter
for returning key match count. It will ease handling of no-match case.
+* telemetry: The functions ``rte_tel_data_add_array_u64`` and ``rte_tel_data_add_dict_u64``,
+ used by telemetry callbacks for adding unsigned integer values to be returned to the user,
+ are renamed to ``rte_tel_data_add_array_uint`` and ``rte_tel_data_add_dict_uint`` respectively.
+ As such, the old function names are deprecated and will be removed in a future release.
+
* eal: The function ``rte_eal_remote_launch`` will return new error codes
after read or write error on the pipe, instead of calling ``rte_panic``.
diff --git a/lib/telemetry/rte_telemetry.h b/lib/telemetry/rte_telemetry.h
index 73886fe..f364ac7 100644
--- a/lib/telemetry/rte_telemetry.h
+++ b/lib/telemetry/rte_telemetry.h
@@ -11,6 +11,7 @@ extern "C" {
#include <stdint.h>
#include <rte_compat.h>
+#include <rte_common.h>
/** Maximum length for string used in object. */
#define RTE_TEL_MAX_STRING_LEN 128
@@ -132,7 +133,6 @@ rte_tel_data_add_array_int(struct rte_tel_data *d, int x);
* @return
* 0 on success, negative errno on error
*/
-__rte_experimental
int
rte_tel_data_add_array_uint(struct rte_tel_data *d, uint64_t x);
@@ -149,7 +149,8 @@ rte_tel_data_add_array_uint(struct rte_tel_data *d, uint64_t x);
* 0 on success, negative errno on error
*/
int
-rte_tel_data_add_array_u64(struct rte_tel_data *d, uint64_t x);
+rte_tel_data_add_array_u64(struct rte_tel_data *d, uint64_t x)
+ __rte_deprecated_msg("use 'rte_tel_data_add_array_uint' instead");
/**
* Add a container to an array. A container is an existing telemetry data
@@ -244,7 +245,6 @@ rte_tel_data_add_dict_int(struct rte_tel_data *d, const char *name, int val);
* @return
* 0 on success, negative errno on error, E2BIG on string truncation of name.
*/
-__rte_experimental
int
rte_tel_data_add_dict_uint(struct rte_tel_data *d,
const char *name, uint64_t val);
@@ -265,7 +265,8 @@ rte_tel_data_add_dict_uint(struct rte_tel_data *d,
*/
int
rte_tel_data_add_dict_u64(struct rte_tel_data *d,
- const char *name, uint64_t val);
+ const char *name, uint64_t val)
+ __rte_deprecated_msg("use 'rte_tel_data_add_dict_uint' instead");
/**
* Add a container to a dictionary. A container is an existing telemetry data
diff --git a/lib/telemetry/version.map b/lib/telemetry/version.map
index 3c228d9..86ba714 100644
--- a/lib/telemetry/version.map
+++ b/lib/telemetry/version.map
@@ -5,10 +5,12 @@ DPDK_22 {
rte_tel_data_add_array_int;
rte_tel_data_add_array_string;
rte_tel_data_add_array_u64;
+ rte_tel_data_add_array_uint;
rte_tel_data_add_dict_container;
rte_tel_data_add_dict_int;
rte_tel_data_add_dict_string;
rte_tel_data_add_dict_u64;
+ rte_tel_data_add_dict_uint;
rte_tel_data_alloc;
rte_tel_data_free;
rte_tel_data_start_array;
@@ -23,9 +25,7 @@ EXPERIMENTAL {
global:
# added in 23.03
- rte_tel_data_add_array_uint;
rte_tel_data_add_array_uint_hex;
- rte_tel_data_add_dict_uint;
rte_tel_data_add_dict_uint_hex;
local: *;
--
2.23.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。