From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 00D1841D8D for ; Mon, 27 Feb 2023 08:09:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EAB3140ED6; Mon, 27 Feb 2023 08:09:50 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2075.outbound.protection.outlook.com [40.107.244.75]) by mails.dpdk.org (Postfix) with ESMTP id 4B5FB40A84 for ; Mon, 27 Feb 2023 08:09:47 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CC7Ombnmj2I0giuS99MlfMkabDNO8W2wlWgHg/ZkGzqfz26MY6P7RAyDjfpPP6LtfIvn5Oh7dG27rF07h4BEXkSSyBeve6XUbn805p0/eFnCvRfr5eLckiYKMmYc5obJou8qbiN8s+vtILPrRRtV7i3WZA7JjinvQSyc+KCwy/eWHETb1reNv5UnLSlGd4Vk1sEWl5P7pJCI3b1hjcWsM7fcXQvOJupA2N+PYU3p1nh8/Fw1aJHq7UfXtFL85UHot9rCW/xLH9KUft8bpMDby13wp1nl7kdZlIqNr0GaLnYlyKgJwDmpWf73cOzcxMBjeENZUo89BqVjSMD1coY22A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hibPDhDTIB3IbNE8d1BiieTzh4qcQxFpHwpDzXSSIFQ=; b=VWYq17P7Q1vGgLWwo4R5ZeXUQ/9ZTvOMSTQVvg3YdCnlMcBhWaRXUmBYHxNKIO2R3FOqwGZ4XSqxfNZbro8kdaskcZC4zTlEqP6+7C+srcYzQRKidnvI8bqt3rVMeCA4zX0RbRlxUKcDl70ePua+IxmTc7WgX4UOl3rRpGDPiXLK3whtPZmgH6MlGW7SjtQmiQZJ7iAxtfLTNAuWgxKqTRxLfrLo8vBf+e7oJirT+6UL1cCBsEf3i9Pa7qA+JZ7a7KVn686rogU4hXLtgAEfYx+jj4dV1WYnE6Mzh6Wr2Eh9dFumg0OjvkjvedOPLoupmz2WkKn+Z5NX12e1gKF2pA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=huawei.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hibPDhDTIB3IbNE8d1BiieTzh4qcQxFpHwpDzXSSIFQ=; b=pMUKNN8wDoflXGvqOvyBV9g8BEn2I2G/ZG4aO+9JF0deqn4Cx3+cnrLQbCzVPFYHxlMsbutF8dvrGiGrW+MPkjQ0NqTlCwPUUIOE9o4sys4dtztsivQ3WF0g9BWtoOgWeKDwex4JCx5sEuwA7qPWOAcbPYFqS4oSRFi5ngTzCiHHOYLgWwnyBvA2cMNQBGDVNQ1ENAh0ZnsNFPzUXUEztevdIaOr3A4ubj3WK70HFlBvAJQf6Nyfkn5/5StG2Ytut4oRxY+LDxVu0YXxkYW8kZxBqFbzbB1gEFnRpgQC34S9MIFoknNKsYYDv2sBE/ZtGpLxEeuCnV9ohdbfYCvIcg== Received: from BN9PR03CA0708.namprd03.prod.outlook.com (2603:10b6:408:ef::23) by SA1PR12MB6848.namprd12.prod.outlook.com (2603:10b6:806:25f::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.25; Mon, 27 Feb 2023 07:09:45 +0000 Received: from BN8NAM11FT022.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ef:cafe::c7) by BN9PR03CA0708.outlook.office365.com (2603:10b6:408:ef::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.28 via Frontend Transport; Mon, 27 Feb 2023 07:09:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT022.mail.protection.outlook.com (10.13.176.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.16 via Frontend Transport; Mon, 27 Feb 2023 07:09:44 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Sun, 26 Feb 2023 23:09:31 -0800 Received: from nvidia.com (10.126.230.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Sun, 26 Feb 2023 23:09:28 -0800 From: Xueming Li To: Chengwen Feng CC: Bruce Richardson , dpdk stable Subject: patch 'telemetry: fix repeat display when callback don't init dict' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 14:59:46 +0800 Message-ID: <20230227070107.15664-78-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT022:EE_|SA1PR12MB6848:EE_ X-MS-Office365-Filtering-Correlation-Id: 1290544f-b7f2-41e2-e8a3-08db18919aad X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wJNDuJ4zFdOwEdRdh8TAOOk7X7rwnoTx0Qj9ceAo48QP75v7fSuvWJ545Elt7Ca1V28AIurzYAXHfCxa/WF1EsFE+0cuZjHHZMy8dctBhGFtUz7ixamG2KF6Wyp6Z0I+FWxb42IARZy0/LvCt5P1XJZWkQMeL2UiNqc+U9aPRZT4yeqxAaKGts7VMJ8DlTHhE76BXjNisEV61UoiX7vxxQglqF/mDjKP20VPy9aDqPCYb0o0QrAzK1FWG4t+9wSxXAq02wZubyURtI8IbvfnujYnLoacUe+SSkTg7l6Mo9302DPo0ctdKdl5mDL55OgWVp5X3L70CqKvAJ494cc56QdMPHz0gF8HwU2w2c8Ye7WYnDtuuonpEVkwqb0z5bihI+0fHtgkQuJ/4Rnw+2MI++AvbIv/968ZeAqjPOF9fFZTnqQ82OJs0RMGkJ3fZNkNgCc9QJab/qty2X2yPXAn2TNXhBkIPqD0kzbhNHRKXit5UZGEpuqgZtaiBk4NPibcXjriJHCnsygq7K+4JKUM7HgHLH516aFW1hP2SgyivaGNTIbw3gU1br03mgaG9uXo36tvxB+rBgyWvakhqfUEhRfdFQd26+ZaJRsW08VUMH+DHHnVF8yrhWEEl3xOlqcNgoaxf9UpN9eZ1Y2G3J1sA+OP7F8+5yNvcEnumKN7LjbcwerQliu1bilpaPAVUig6j718u36ZypanTQdLZjEaKSbcEQemF2Vs1A2tFEnd1BXm7ZGSTqqaT7Hc7t5naXpUAsx8zzg75tZ5QYDMZccuz6/oKeqiuL0mLrhvQjuJsQgmZYjSLJ3gXk0nsFRYIgCY X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(346002)(136003)(39860400002)(376002)(396003)(451199018)(40470700004)(36840700001)(46966006)(40460700003)(186003)(6286002)(16526019)(70586007)(426003)(356005)(82740400003)(7636003)(83380400001)(8936002)(34020700004)(70206006)(41300700001)(8676002)(55016003)(6916009)(36860700001)(26005)(7696005)(336012)(2906002)(40480700001)(53546011)(1076003)(47076005)(6666004)(478600001)(4326008)(966005)(2616005)(316002)(36756003)(82310400005)(86362001)(54906003)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:09:44.5439 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1290544f-b7f2-41e2-e8a3-08db18919aad X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT022.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6848 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 22.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/01/23. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=0343d4cb72d1f9dbdd26d30e7c8c7c86132ea626 Thanks. Xueming Li --- >From 0343d4cb72d1f9dbdd26d30e7c8c7c86132ea626 Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Thu, 9 Feb 2023 01:25:33 +0000 Subject: [PATCH] telemetry: fix repeat display when callback don't init dict Cc: Xueming Li [ 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") Signed-off-by: Chengwen Feng Reviewed-by: Bruce Richardson --- 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 8fbb4f3060..7b905355cd 100644 --- a/lib/telemetry/telemetry.c +++ b/lib/telemetry/telemetry.c @@ -333,7 +333,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.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:43.428442100 +0800 +++ 0079-telemetry-fix-repeat-display-when-callback-don-t-ini.patch 2023-02-27 14:08:40.799237000 +0800 @@ -1 +1 @@ -From ff50c4f9136781bae9089c596e0a12d113e1d474 Mon Sep 17 00:00:00 2001 +From 0343d4cb72d1f9dbdd26d30e7c8c7c86132ea626 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit ff50c4f9136781bae9089c596e0a12d113e1d474 ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -21 +23 @@ -index 655191bcf1..7bceadcee7 100644 +index 8fbb4f3060..7b905355cd 100644