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 127EF428F8 for ; Sun, 9 Apr 2023 17:26:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0A99B410EF; Sun, 9 Apr 2023 17:26:32 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2081.outbound.protection.outlook.com [40.107.93.81]) by mails.dpdk.org (Postfix) with ESMTP id 246E840A80 for ; Sun, 9 Apr 2023 17:26:31 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jQm2qRTe+TRPHSMP7DEi1XPe93Hi443FA2LX3nJvtDqko/XhPmb2Hpx4XiUa9GA/DwasxSdU9eIXjAn/lS0MSHkIDlMdlQXean4E0G56+qqKd/ERyd+SfCj3tGSHVIbZhmjm/ETRThoyrwGlTw2RhBUnw5x7e+FbA7meSwtrf7nKmpQKG1p7J09QmGAxuTuNVQbB1TPRWQB34kF7PlrUDxc1WH8UA1Gd3RAv8xfqqlW4xRn+KQ25xKIfOfYJGT1vRngtEsttDKcoEAGph1AykxPL14reqSRFHk228OkcrYsZZ/Rff84N9a7RYLDJFXMjETCGwkFY4/mhtexW/CYuuw== 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=Mgwg2yxGX3hrd5P2laz3O2tRoMZhImZiCD7Qx3i1DJ0=; b=PrVEIK7P90TgCP8nHnafjiFNg0MCZR2iLl9W9cwAse7R6AfsqM89iDm+0Cp5d4Sl52NOGqItcxvPABN400W+il/N7raR/OE+VUSvj4tXIuZDGG3oxoyBkl7CQQEmuSji3NMglAFTJDMwMCZLepYXYmB8WcwtYRCKxKWK5M5UCzog011BOI+EOLBJnet5raYpNvXJPI3kVKloe2K/TKDPv0IAd7Ta+bPbtCTjR4R/Pgvn8YcYv7FmCJpiuOhlAe28yuRnBfz6PRLxOHEzU+b+1JLMdOhAHUb0x3FHEbX7ggyLYLHwk04SaeY5hGOM86pXwOPD9d3RUYt5K+CIbsgBUA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=intel.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=Mgwg2yxGX3hrd5P2laz3O2tRoMZhImZiCD7Qx3i1DJ0=; b=kRRSIDtkjRJ4FHD/Pn+qKe4awGMK1K1pjn+uH2n+0XAhoz1Ws/votfN9mZ8Faca8FSQi8a57sh/Sc9WqOJCFqrdzrx/zdtUjUXvi3ZqeT6mJvEr8hvTCnJHDzoL5JLJPNukQcRql0Kws8fZQvdqQzaAMtQta2S85ZHMZEogAPGPjr1GXaBbglpe81f+pDIWOBJfhdKFcbaFXogF3dy4HK4JpWQcePSO3zVSr7fyaGNXROVuzcDy1VC9N9qcbK597Q2AEUvJSXVXQQEny4QPA3l0FP2iaWoI/UvoYjzLeXMWOgWqYK6iWp6lOvlcOnNLhnTIJxMs1eqxUekuI5nQCkA== Received: from MW2PR16CA0053.namprd16.prod.outlook.com (2603:10b6:907:1::30) by BL0PR12MB4947.namprd12.prod.outlook.com (2603:10b6:208:17d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.33; Sun, 9 Apr 2023 15:26:28 +0000 Received: from CO1NAM11FT011.eop-nam11.prod.protection.outlook.com (2603:10b6:907:1:cafe::eb) by MW2PR16CA0053.outlook.office365.com (2603:10b6:907:1::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.36 via Frontend Transport; Sun, 9 Apr 2023 15:26:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CO1NAM11FT011.mail.protection.outlook.com (10.13.175.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.25 via Frontend Transport; Sun, 9 Apr 2023 15:26:27 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Sun, 9 Apr 2023 08:26:16 -0700 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, 9 Apr 2023 08:26:14 -0700 From: Xueming Li To: Abdullah Sevincer CC: Jerin Jacob , dpdk stable Subject: patch 'eventdev: fix memory size for telemetry' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:23:15 +0800 Message-ID: <20230409152529.5308-8-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230409152529.5308-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230409152529.5308-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: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT011:EE_|BL0PR12MB4947:EE_ X-MS-Office365-Filtering-Correlation-Id: e0fbcb89-258e-45f8-0156-08db390ec975 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OZfzcxT5cgTnVuyb+OZlhDxeRiMBkOOkTe60vyv+NRF/zl4Ft7GBGTNAEpjBJ8wjSTPVHAUE0m2O7rpLC4tOqjSjI7U4YCNrm4Wz5YvC9Zx8tAM2mvcFJ4cGhDgAXHuVkaRC/yuC1caQCkotgOLj6KLlBqywSYCDa71kPwG3i3bo7SGCiupp7/9TyQqRq534vIttvdoX1Pq0Bwe+2e/YISJ7rqiXHCwWeLQ41ZhEFYak7wmx4a14tVhJj2aKmhMmUB4+J7ZshqICI+L9cvRm37Mag4LYq0VGev6CXRTin6cep0ShJV1I7FUfHAj93To+SSegQCybJnizeKtAND6DzQpQsVsK0FeshKp1CSM2y6vyfyeJpXSvWkJuERs7ekimq+lcDDd5S2tscCG/rKDKzsG6mdMugWbAtEUCFqaTenbJKSBZrt4f8UaFwdpfB3nwewSa/6zpSirko+NTx+a9QceyrAAtnOHpk+drkg/86cbhuMPm968ljO5ki03pICGbemJ/ShIaJSWAgXV+YQ+nz47sv/2f7MZ0B7MT3fTR4TfpwLn+GgiwKWMRM2kOsq56kv88b6q1J9qfuAJN+oYlw0V0GOq9xGaqDq6nbLdeW1XQM5pVvxOlb1smgOkhR907Q3GOQjinIB66+oN3/3WVH/jeCo7zN1ewBM5HeM55PMuNBn1jEL9QxYkFNEakKPyeD/NOpgmi6/ErgaRWVlXvOJdJmAnkAhN/dtEGDQE9qA4AIv3iqt3xiTPav5+N9zLUftpdRFZkdpGQkWD1D8qvXiePtJ3Nb+y0r5TdCaUivlg= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(136003)(376002)(396003)(346002)(39850400004)(451199021)(36840700001)(46966006)(36860700001)(54906003)(7636003)(82740400003)(356005)(82310400005)(2616005)(336012)(426003)(47076005)(316002)(83380400001)(478600001)(86362001)(186003)(6286002)(4326008)(6916009)(16526019)(8676002)(26005)(1076003)(2906002)(70586007)(70206006)(53546011)(36756003)(5660300002)(40480700001)(966005)(8936002)(41300700001)(55016003)(7696005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:26:27.3864 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e0fbcb89-258e-45f8-0156-08db390ec975 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT011.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4947 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 04/11/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/log/?h=22.11-staging/commit/f76551552e977078105dcac0cb2e1c5dcaadec06 Thanks. Xueming Li --- >From f76551552e977078105dcac0cb2e1c5dcaadec06 Mon Sep 17 00:00:00 2001 From: Abdullah Sevincer Date: Tue, 28 Feb 2023 15:31:23 -0600 Subject: [PATCH] eventdev: fix memory size for telemetry Cc: Xueming Li [ upstream commit e0fb0051ff8f621a2b001d9243cebe50f3d42cf5 ] Fix the invalid memory free operation caused by extending xstats ID width from 32 to 64 bits. Telemetry application crashed when freeing memory, hence, the telemetry app could not display xstats. Fixes: 1bdfe4d76e98 ("eventdev: increase xstats ID width to 64 bits") Signed-off-by: Abdullah Sevincer Acked-by: Jerin Jacob --- lib/eventdev/rte_eventdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c index b0414206d9..78336faa6a 100644 --- a/lib/eventdev/rte_eventdev.c +++ b/lib/eventdev/rte_eventdev.c @@ -1678,7 +1678,7 @@ eventdev_build_telemetry_data(int dev_id, if (xstat_names == NULL) return -1; - ids = malloc((sizeof(unsigned int)) * num_xstats); + ids = malloc((sizeof(uint64_t)) * num_xstats); if (ids == NULL) { free(xstat_names); return -1; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:39.015093800 +0800 +++ 0007-eventdev-fix-memory-size-for-telemetry.patch 2023-04-09 21:45:38.569042200 +0800 @@ -1 +1 @@ -From e0fb0051ff8f621a2b001d9243cebe50f3d42cf5 Mon Sep 17 00:00:00 2001 +From f76551552e977078105dcac0cb2e1c5dcaadec06 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit e0fb0051ff8f621a2b001d9243cebe50f3d42cf5 ] @@ -13 +15,0 @@ -Cc: stable@dpdk.org @@ -22 +24 @@ -index 71a29f3506..6ab4524332 100644 +index b0414206d9..78336faa6a 100644 @@ -25 +27 @@ -@@ -1725,7 +1725,7 @@ eventdev_build_telemetry_data(int dev_id, +@@ -1678,7 +1678,7 @@ eventdev_build_telemetry_data(int dev_id,