Sync some patchs from upstreaming and modifies are as follow: - net/hns3: fix mailbox sync - net/hns3: report maximum buffer size - ethdev: add maximum Rx buffer size - app/procinfo: show RSS hash algorithm - ethdev: get RSS algorithm names - app/procinfo: adjust format of RSS info - app/procinfo: fix RSS info - net/hns3: support setting and querying RSS hash function - net/hns3: report RSS hash algorithms capability - ethdev: set and query RSS hash algorithm - ethdev: clarify RSS related fields usage - net/hns3: fix uninitialized hash algo value - net/hns3: keep set/get algo key functions local - net/hns3: fix some error logs - net/hns3: fix some return values - net/hns3: fix LRO offload to report - net/hns3: fix setting DCB capability - app/testpmd: ease configuring all offloads - net/hns3: refactor interrupt state query - net/hns3: fix IMP or global reset - net/hns3: fix multiple reset detected log - net/hns3: remove reset log in secondary - net/hns3: fix double stats for IMP and global reset - net/hns3: fix crash for NEON and SVE - net/hns3: fix unchecked Rx free threshold - net/hns3: fix typo in function name - net/hns3: fix build warning - telemetry: fix repeat display when callback don't init dict Signed-off-by: Dengdui Huang <huangdengdui@huawei.com>
39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From 0ba973a96681d5c5f85423176d63c14f8cbc1c25 Mon Sep 17 00:00:00 2001
|
|
From: Chengwen Feng <fengchengwen@huawei.com>
|
|
Date: Thu, 9 Feb 2023 01:25:33 +0000
|
|
Subject: [PATCH 367/394] telemetry: fix repeat display when callback don't
|
|
init dict
|
|
|
|
[ upstream commit ff50c4f9136781bae9089c596e0a12d113e1d474 ]
|
|
|
|
When a telemetry callback doesn't initialize the telemetry data
|
|
structure and returns a non-negative number, the telemetry will repeat
|
|
to display the last result. This patch zero the data structure to avoid
|
|
the problem.
|
|
|
|
Fixes: 6dd571fd07c3 ("telemetry: introduce new functionality")
|
|
Cc: stable@dpdk.org
|
|
|
|
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
|
|
Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
|
|
---
|
|
lib/telemetry/telemetry.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/telemetry/telemetry.c b/lib/telemetry/telemetry.c
|
|
index 52048de55c..2c12db20cb 100644
|
|
--- a/lib/telemetry/telemetry.c
|
|
+++ b/lib/telemetry/telemetry.c
|
|
@@ -332,7 +332,7 @@ output_json(const char *cmd, const struct rte_tel_data *d, int s)
|
|
static void
|
|
perform_command(telemetry_cb fn, const char *cmd, const char *param, int s)
|
|
{
|
|
- struct rte_tel_data data;
|
|
+ struct rte_tel_data data = {0};
|
|
|
|
int ret = fn(cmd, param, &data);
|
|
if (ret < 0) {
|
|
--
|
|
2.23.0
|
|
|