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 69B3341D8D for ; Mon, 27 Feb 2023 08:05:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 664104114B; Mon, 27 Feb 2023 08:05:06 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2050.outbound.protection.outlook.com [40.107.220.50]) by mails.dpdk.org (Postfix) with ESMTP id 48F3A40A84 for ; Mon, 27 Feb 2023 08:05:04 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BJA30yUEw0XEOqe5DnGOdnxhBsMRosE4Ce8q+DQCxJLM4lQkLyyo2ww2lYhmPNpxEsl06MVnnn3oZuu3++/6zPEu6qI6VJ31OiyOXLzGVIHHG+h4xo7qEkH/vi7J1kJtT0aRJV3X8sOBI431YPK+Q3eSJh+eRqckhh64S36LD7W4tFRAXqDt7I8b4C0qfoh5SA83fK5ECHisRaF1EqY6MuCjNfgEXYymiqrLr2Pijn3Dm4YS7dHkEc3j2JaYGv0tvSWjOa6QYGX5JgdyPs245yfDA4yToSajXdIWwFdZERmGOz/ojO6cecAzbO0IHonk213+v6SD40XgGQn3yhBpIw== 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=FBvdIeFdhFjmkLB1+ljTYS+DeGmhIRjVFPV04pKiCSM=; b=CMAyNUKeE50P9GtCToy0pckk4kkTV+JHQ6FIysxWaR4V3Qjj4xlX2RyBJBDp5j14CEwA+n3MN+pPxna0mL/gIVv2zk4RKZBtli8hWo9KgMAhM2tMGEIBm21nMUz0GE5kCv9I+i/zzu6dwFmaZjx8ZdQdeYIMH+pOiX5TPtpjCQgByG+FYEueaYsycxzbv4YWAyxUmg34zyHy18UZ0fOnqZiBalBqTcwScEb2pAXegl0PVeZNOGEARCxadWN061zCirqqLzVn86yXDG2WEg2xkrLRVzEd1bMTGLTCSJ+um64UmcAwpV/EOgDbKBo2jTZRdbAy/sFQyD9FG7ddNBLwrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=FBvdIeFdhFjmkLB1+ljTYS+DeGmhIRjVFPV04pKiCSM=; b=IBKGKPTTIWdWea1eAg1dWxpdzBw/BWdQhP20GvFjQ22G0E/9in168EJwYJhcH97hH2cmes+9v6L8rJTrsWZ3b5kGJ6ec/2gfES6I/hltOn0JDalfEVWbfziUGdOodmbbEZj/WHYS+JdnmfwVTx4y5wknakuC+ZyPqJh1DSoP1zRUXbkQSCa63qcR7Y/nJEQfARqdtX5y2FMPnh/WB8Uaj3qpawdy7p2MtuH8SMGZAUTIRTGhTyr/2v8Y0lxi7snLERGRdqeV5VMbXd09HNoZVzAciav2a+hA67UlLhfArxcuFXxAhTrgoR+FR418yjuwMDMFbOtyv5swVJZislQpyA== Received: from MW4PR04CA0368.namprd04.prod.outlook.com (2603:10b6:303:81::13) by LV2PR12MB5728.namprd12.prod.outlook.com (2603:10b6:408:17c::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.27; Mon, 27 Feb 2023 07:05:00 +0000 Received: from CO1NAM11FT012.eop-nam11.prod.protection.outlook.com (2603:10b6:303:81:cafe::bc) by MW4PR04CA0368.outlook.office365.com (2603:10b6:303:81::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29 via Frontend Transport; Mon, 27 Feb 2023 07:05:00 +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 CO1NAM11FT012.mail.protection.outlook.com (10.13.175.192) 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:05:00 +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.36; Sun, 26 Feb 2023 23:04:47 -0800 Received: from nvidia.com (10.126.231.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:04:44 -0800 From: Xueming Li To: Huisong Li CC: =?UTF-8?q?Morten=20Br=C3=B8rup?= , Chengwen Feng , dpdk stable Subject: patch 'mempool: fix telemetry data truncation' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 14:59:02 +0800 Message-ID: <20230227070107.15664-34-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-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.126.231.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: CO1NAM11FT012:EE_|LV2PR12MB5728:EE_ X-MS-Office365-Filtering-Correlation-Id: 4365b6ef-2889-41bf-255f-08db1890f13a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A27roimpnP1Uipr4q15f0B1gd45AXrg2N4tI1vA0XIqPdKaPE1D84dY4RCY6F/1lX3fUCVkhz39oT8mcLwaD/9phZTF43PVhG2/UTbT4ubpHsQKlssEy0o8F8ah1zZcxyTdAMR5VlBtDgX5GcBLGEModpHEkK9fXJZy9VxEMH9/mEpjBOGTG3lxk7pbJqDwa5MpjHpnUpcbZNSmsedxqbkj6fJ0G/9KEBjEJye3hxMS8Mewzo2REFr/Jk3D4VsTf5BqZJf3JhFMn0jORprO3OXKrUC0ixjIjp81HB7Qpt/3UVIO0jg3TL0q/OHra50AbrmxcyxaQdKQfnysd1NmxM0l90PAd9+DSIjdX3Fno62PBEd64CF5Gv04JUnfSnE0hp8K9OtQVIaJLP6HYlW2rURQvhbGllcQk2FIAB2L6cKR7wM91ozAkZqrEdp/7j3jv1Yaj8DGC5T8eMJLKIfRsC8tVuaTtaFjXvLFQ7g3GGoBg4IjwtULa8FbcnOzmp3HicC4V5TXywWgkYH6PV8L8M8HTNNjUk87O8SXmT3hK5PZx7xkZNCO3tJjrnAPsb7Btu5zIpIx2mAyM5V0smOD3tybhr4l83XZg6PC3tXpCMoSky1uATtoN5bCTXV0+t9CtqcpnDSSGAyprlzFirywGQfgYqoprrZlbQ1IkIRxu9rUJznVRQQpkQ2jgl5xo6RrXDexJjxwfv5o4XdqNkwHlEHGhjIgZVtWFRVxWCayDfj0odlxeEtkjsKi/B6fDsZ36qWCezfASQVDObWKNmfb/SGz9Kem0oq6KXcdxMWxLZzRAiWUDgr/NtYpFhI5m5RIC 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:(13230025)(4636009)(136003)(396003)(376002)(346002)(39860400002)(451199018)(36840700001)(46966006)(40470700004)(7636003)(54906003)(8936002)(316002)(82740400003)(336012)(8676002)(16526019)(6286002)(36756003)(186003)(26005)(478600001)(53546011)(82310400005)(356005)(7696005)(86362001)(966005)(40460700003)(6666004)(1076003)(2906002)(55016003)(40480700001)(2616005)(5660300002)(34020700004)(70586007)(70206006)(4326008)(6916009)(83380400001)(41300700001)(36860700001)(66574015)(47076005)(426003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:05:00.2815 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4365b6ef-2889-41bf-255f-08db1890f13a 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: CO1NAM11FT012.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR12MB5728 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=16f272c96f1bcbc470629f825d67bcf20a598a31 Thanks. Xueming Li --- >From 16f272c96f1bcbc470629f825d67bcf20a598a31 Mon Sep 17 00:00:00 2001 From: Huisong Li Date: Mon, 19 Dec 2022 15:06:43 +0800 Subject: [PATCH] mempool: fix telemetry data truncation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit 4eebfcf70a21b2b608e3bb9f20b5ee23338172ec ] The 'u32' and 'u64' data can not assigned to 'int' type variable. They need to use the 'u64' APIs to add. Fixes: 2f5c4025abb3 ("mempool: add telemetry endpoint") Signed-off-by: Huisong Li Acked-by: Morten Brørup Acked-by: Chengwen Feng --- lib/mempool/rte_mempool.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/mempool/rte_mempool.c b/lib/mempool/rte_mempool.c index f33f455790..950d01ffac 100644 --- a/lib/mempool/rte_mempool.c +++ b/lib/mempool/rte_mempool.c @@ -1500,27 +1500,27 @@ mempool_info_cb(struct rte_mempool *mp, void *arg) return; rte_tel_data_add_dict_string(info->d, "name", mp->name); - rte_tel_data_add_dict_int(info->d, "pool_id", mp->pool_id); - rte_tel_data_add_dict_int(info->d, "flags", mp->flags); + rte_tel_data_add_dict_u64(info->d, "pool_id", mp->pool_id); + rte_tel_data_add_dict_u64(info->d, "flags", mp->flags); rte_tel_data_add_dict_int(info->d, "socket_id", mp->socket_id); - rte_tel_data_add_dict_int(info->d, "size", mp->size); - rte_tel_data_add_dict_int(info->d, "cache_size", mp->cache_size); - rte_tel_data_add_dict_int(info->d, "elt_size", mp->elt_size); - rte_tel_data_add_dict_int(info->d, "header_size", mp->header_size); - rte_tel_data_add_dict_int(info->d, "trailer_size", mp->trailer_size); - rte_tel_data_add_dict_int(info->d, "private_data_size", + rte_tel_data_add_dict_u64(info->d, "size", mp->size); + rte_tel_data_add_dict_u64(info->d, "cache_size", mp->cache_size); + rte_tel_data_add_dict_u64(info->d, "elt_size", mp->elt_size); + rte_tel_data_add_dict_u64(info->d, "header_size", mp->header_size); + rte_tel_data_add_dict_u64(info->d, "trailer_size", mp->trailer_size); + rte_tel_data_add_dict_u64(info->d, "private_data_size", mp->private_data_size); rte_tel_data_add_dict_int(info->d, "ops_index", mp->ops_index); - rte_tel_data_add_dict_int(info->d, "populated_size", + rte_tel_data_add_dict_u64(info->d, "populated_size", mp->populated_size); mz = mp->mz; rte_tel_data_add_dict_string(info->d, "mz_name", mz->name); - rte_tel_data_add_dict_int(info->d, "mz_len", mz->len); - rte_tel_data_add_dict_int(info->d, "mz_hugepage_sz", + rte_tel_data_add_dict_u64(info->d, "mz_len", mz->len); + rte_tel_data_add_dict_u64(info->d, "mz_hugepage_sz", mz->hugepage_sz); rte_tel_data_add_dict_int(info->d, "mz_socket_id", mz->socket_id); - rte_tel_data_add_dict_int(info->d, "mz_flags", mz->flags); + rte_tel_data_add_dict_u64(info->d, "mz_flags", mz->flags); } static int -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:42.046453300 +0800 +++ 0035-mempool-fix-telemetry-data-truncation.patch 2023-02-27 14:08:40.749237000 +0800 @@ -1 +1 @@ -From 4eebfcf70a21b2b608e3bb9f20b5ee23338172ec Mon Sep 17 00:00:00 2001 +From 16f272c96f1bcbc470629f825d67bcf20a598a31 Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit 4eebfcf70a21b2b608e3bb9f20b5ee23338172ec ] @@ -13 +15,0 @@ -Cc: stable@dpdk.org