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 73BC441D8D for ; Mon, 27 Feb 2023 08:05:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6FD2541148; Mon, 27 Feb 2023 08:05:02 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2070.outbound.protection.outlook.com [40.107.95.70]) by mails.dpdk.org (Postfix) with ESMTP id A7DEF40A7D for ; Mon, 27 Feb 2023 08:05:00 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RFYMqGdE3VX9Xme7WtdmAKBvG8hGc5Tc6yAgg8WqqpCZhGtLSxPpvzkR5vP+EcB3FG/IEBv0jQN3Rf37lhHdWx7Ro2LGddCsfS3/FFYkcpe2Lu7jDEfdKW1XoI7a/5zO5zNo8mw1vdeFCZoqb9TVE47hAXBmIe0P8Y4JWqi+KL80Smgqo0hvEINjsh4MOKiMWhKxi0OV1YgvNeZ9AhLTHxLO0csijWXRf7fRyVWqamh1KLMUXH1I47pT7+v8NwFsHnY/vWwhhsW799qnLz4GmiysXY7D3PG4ZS1QLbw/786YB1o2RCkEaNPkrYjc4iq9SxPvpm4QZ9if3ey/SHne2Q== 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=hj/p1ZKAm7Qnldn1bKw471noxi4JsOWKgd5jRgd3Y18=; b=VuXDm2BCSGVzxA33Gn5tSYHEOdhjLzYAvtWCXP0YGLRfxzaOZftH7EL9FDOmHnU3KAvxCBtzJUGsf4Y0mWbL9im7VXT8M+nf9/8ZWixF7M8eGMmQbtPXgJWcV7fu2OuNqDrXswkWqjkdyClyuWaXAxBoRDsqqdowxHsCbk6yAjM5OZY8VK5V9H3v1IsJolXmNbtl3Q96fQ/ZDlJyWXNyQNIjeXAFcWsQMIkp7BqFWSFPNX2E+XJm4RtFSUioH/ahlVC9W8fpTbOsbHhA4HOGHujfEuXhAMnBH8AA1jDXUkrMJ1coCvk0puYwqKyRjiT/hssbD+STELDN75JlLO4npg== 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=hj/p1ZKAm7Qnldn1bKw471noxi4JsOWKgd5jRgd3Y18=; b=cUh4bdazHT+mJytEmKeiEQiSTGH1RPgkWCe8vZQ+Z3/rEGcA5LcegZH6GEDr0on/h6zZWWPiU17D4yZ5yGyPg6a+W4YcmVkPElJShsgWEiW5hfGRms7RyAcwMIRSmOv4FnXCFuO3CedEiqIzcTKqU6xP+to6DgcLfMHcCotibnP6o+ehg07ESZ9a/inGeDWvQBblmhyg/u9Or0H8wUtxD2JYOQTUFLJCcqCN8yrjQU5WQHciRovMnCe4MfsopNfSkpzed+eArCo1bo08WUYC3qrDXoWbj4fiCN86kzzpm644JlX7tQ5BUEFTNWyFGNAbCn2KGz84QItvnQ7zoN0cTw== Received: from MW4PR04CA0371.namprd04.prod.outlook.com (2603:10b6:303:81::16) by SJ0PR12MB5472.namprd12.prod.outlook.com (2603:10b6:a03:3bb::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29; Mon, 27 Feb 2023 07:04:58 +0000 Received: from CO1NAM11FT012.eop-nam11.prod.protection.outlook.com (2603:10b6:303:81:cafe::7d) by MW4PR04CA0371.outlook.office365.com (2603:10b6:303:81::16) 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:04:58 +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:04:57 +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:44 -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:42 -0800 From: Xueming Li To: Huisong Li CC: =?UTF-8?q?Morten=20Br=C3=B8rup?= , Chengwen Feng , dpdk stable Subject: patch 'ethdev: fix telemetry data truncation' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 14:59:01 +0800 Message-ID: <20230227070107.15664-33-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_|SJ0PR12MB5472:EE_ X-MS-Office365-Filtering-Correlation-Id: f9f314db-43e6-4806-a884-08db1890efdb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7R4B2Sq8CgOUsKo2HSj31+A96C7z/PXinfJYHrmYHEVbSCRXc4cLPYVSi9ypEsaUSWDORvlBNxkUlwMN18kGOP4ZALxI4hgYSGTIY8/0ySJx0aNqpyr2FfZgrAPM+o471dGqQAeTDnnnBOdpykktoVstrTUJxzEbyhdtZfMV3wixo2b47JhAevOzHrl687vFICdNRtIuHSxYlGKBO3uhb0+vmROeCuj7krENoCrdyduIhdu0a7Pl/QJSx0k5100Fd4mlgcXF2jG/5Uch6SPLnUABvcuKeOJLJljQqQPu0ASX4CJsZBkPR6SVKpFGd8OxHjU8SnikfNSTvizGo/Iukjb0rHVWFiXFAOpuFkpRusCw+fuXqD8tfDuTBqGlXpm2ZUvUMss8tcE4K+Db91o6svaIlDOX0utzZgp23G3hOH80qsA1iakcRXGZEnOjnQpqVM9sMLNFITULRKKehv1kEemKq3DVy3R/4ZsSR196PE+MhefWJAlAPsdZUanZwVip2hZusjV7rhS1zUAw7PRGTm/OYJJNp1+qoppLoiqP+xnrGm6BGDzNS2Ot6E7Wh+hUz298E/9poyBPm8mOorNlpflv3UHPUMmfc2VPQPpXyC1hdWKR8/uw6QVwGBmYlDCxGFZXaEe7YX1H6DD7746YM5IuYI0YHerWEFTeT1DVXCB/duTHNcXJDHKqqCOiS9dhkOJrrazdvOAm9XDySA7iKuBHVOsVkqPb+/Q637BVcDxG+pUR8e1myRaeD4ugJW1pf5I+bzgNCPagIHDLDpUJu8hjvMob8cOcBknZh4jINvHOTBuH2ZhsPxDqRaFTKfv9 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)(346002)(376002)(396003)(39860400002)(451199018)(36840700001)(46966006)(40470700004)(336012)(66574015)(47076005)(426003)(54906003)(316002)(40460700003)(36756003)(86362001)(55016003)(40480700001)(356005)(82740400003)(7636003)(36860700001)(34020700004)(82310400005)(1076003)(6666004)(53546011)(83380400001)(186003)(26005)(6286002)(2616005)(16526019)(5660300002)(2906002)(8936002)(7696005)(966005)(478600001)(6916009)(41300700001)(4326008)(8676002)(70586007)(70206006); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:04:57.9845 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f9f314db-43e6-4806-a884-08db1890efdb 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: SJ0PR12MB5472 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=bd11b88f8be6957df859aef36356fab02ec7755d Thanks. Xueming Li --- >From bd11b88f8be6957df859aef36356fab02ec7755d Mon Sep 17 00:00:00 2001 From: Huisong Li Date: Mon, 19 Dec 2022 15:06:42 +0800 Subject: [PATCH] ethdev: fix telemetry data truncation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit 7db3f2af573287abb9201d46a92b4ca3ebc5d9ad ] The 'u32' and 'u64' data can not assigned to 'int' type variable. They need to use the 'u64' APIs to add. Fixes: 58b43c1ddfd1 ("ethdev: add telemetry endpoint for device info") Signed-off-by: Huisong Li Acked-by: Morten Brørup Acked-by: Chengwen Feng --- lib/ethdev/rte_ethdev.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c index 5d5e18db1e..a40d396677 100644 --- a/lib/ethdev/rte_ethdev.c +++ b/lib/ethdev/rte_ethdev.c @@ -6037,9 +6037,9 @@ eth_dev_handle_port_info(const char *cmd __rte_unused, eth_dev->data->nb_tx_queues); rte_tel_data_add_dict_int(d, "port_id", eth_dev->data->port_id); rte_tel_data_add_dict_int(d, "mtu", eth_dev->data->mtu); - rte_tel_data_add_dict_int(d, "rx_mbuf_size_min", + rte_tel_data_add_dict_u64(d, "rx_mbuf_size_min", eth_dev->data->min_rx_buf_size); - rte_tel_data_add_dict_int(d, "rx_mbuf_alloc_fail", + rte_tel_data_add_dict_u64(d, "rx_mbuf_alloc_fail", eth_dev->data->rx_mbuf_alloc_failed); rte_ether_format_addr(mac_addr, sizeof(mac_addr), eth_dev->data->mac_addrs); @@ -6068,12 +6068,12 @@ eth_dev_handle_port_info(const char *cmd __rte_unused, rte_tel_data_add_dict_container(d, "rxq_state", rxq_state, 0); rte_tel_data_add_dict_container(d, "txq_state", txq_state, 0); rte_tel_data_add_dict_int(d, "numa_node", eth_dev->data->numa_node); - rte_tel_data_add_dict_int(d, "dev_flags", eth_dev->data->dev_flags); - rte_tel_data_add_dict_int(d, "rx_offloads", + rte_tel_data_add_dict_u64(d, "dev_flags", eth_dev->data->dev_flags); + rte_tel_data_add_dict_u64(d, "rx_offloads", eth_dev->data->dev_conf.rxmode.offloads); - rte_tel_data_add_dict_int(d, "tx_offloads", + rte_tel_data_add_dict_u64(d, "tx_offloads", eth_dev->data->dev_conf.txmode.offloads); - rte_tel_data_add_dict_int(d, "ethdev_rss_hf", + rte_tel_data_add_dict_u64(d, "ethdev_rss_hf", eth_dev->data->dev_conf.rx_adv_conf.rss_conf.rss_hf); return 0; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:42.015058700 +0800 +++ 0034-ethdev-fix-telemetry-data-truncation.patch 2023-02-27 14:08:40.749237000 +0800 @@ -1 +1 @@ -From 7db3f2af573287abb9201d46a92b4ca3ebc5d9ad Mon Sep 17 00:00:00 2001 +From bd11b88f8be6957df859aef36356fab02ec7755d Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit 7db3f2af573287abb9201d46a92b4ca3ebc5d9ad ] @@ -13 +15,0 @@ -Cc: stable@dpdk.org