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 10DED43E57 for ; Sat, 13 Apr 2024 15:00:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 059DB40E32; Sat, 13 Apr 2024 15:00:07 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2063.outbound.protection.outlook.com [40.107.236.63]) by mails.dpdk.org (Postfix) with ESMTP id 3B8C9400D6 for ; Sat, 13 Apr 2024 15:00:05 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QeIQefHS1Do18pS369R77J6KG5hZPnI5O35q/dUPKsl30tBjldh3kYOJUY69br0UivvAoSbzOIy+UWrM9tn8605n4qOspXrVcpW8dTUEo3iYRcxpORtGX8F/piJkEmE70711cMq5YKs3Z2UwU9Awes8TTeCXd7KJacQaZ5O6LNp/neDN58Wz+QV2EgrPVtoy8eS51BlkqP6nGwDDhWwqJOfG3qHwMqkPVxSIduHAujbYsM953rrvfnhafzIRhxiC4J6XavxjunXtWjJTYVeEB6EsQz+0Ztu1ixFaswVLL2KgbYW1JZCEnM+9h3GZEJFi+49HBMnCB9/sfdzoSsH6Ng== 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=yOH5egurknmVIbS+a/BcF+CoA/ESAOomxDBVwDY302A=; b=j8UojLig66FnfvzqtSatPM7em7lHb2YqJ0SObXOipdPFyXykQVYsw6DnyAa1mbuLnw+58xPS/mzxVe6vpCjfgW/2v+gKOBSqqNZP6K4lccahE4k4gYm7LR5OJR/prDszrW9x13YuYBT7fCBgSl1ew8jlrMNmjOQyFCLAaTv/i5WALdN/EzgfY1AooNdDBdLRKHpBIv1VyGeiYiHrYzHSwMX2N6ASvunbtQ8uYOEzZYOLK2dwU7md611S1/jdkivQftGJISMhP0BQRLMaDwBeB5m/8Rv/RhxgjlElY5niFROnkO/9edrc/XGOcsxxbQS5VqYTu/uVu9kQ51W+kE3kMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=smartsharesystems.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 (0) 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=yOH5egurknmVIbS+a/BcF+CoA/ESAOomxDBVwDY302A=; b=l0dDrkCloq8jBC3ol4ZuZQfTi1kxZ8zaR5JP+abg9dI5PKsGURDbwr9GynA8KnbbtHYXu9adggyZf98GaD+8leytXi+nfSp0LtOzEl3BSJS2wUUdWfsVe3nibBHAHJ2eutOBUwrDqZhyciFDlcJpK/myGrk66JOrjGiXKR0CzBA4416hPmfaznbcS+ghS939RVVGGfYwJxfXtIP0lV+cFFUP9M4LMtvNT0618Aa59AZP2YKuBmEiuHT7WBPGlWDwqlonwp/9xa/sSqO3tokMISfj5tzwhZzD/2j9h/ApoXCzkcrJaOBiANU423TmzDvQGtgfn+cL1vMA+s6ywqAeBA== Received: from SJ0PR05CA0049.namprd05.prod.outlook.com (2603:10b6:a03:33f::24) by SA1PR12MB5640.namprd12.prod.outlook.com (2603:10b6:806:23e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Sat, 13 Apr 2024 13:00:02 +0000 Received: from MWH0EPF000989E8.namprd02.prod.outlook.com (2603:10b6:a03:33f:cafe::b3) by SJ0PR05CA0049.outlook.office365.com (2603:10b6:a03:33f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7495.14 via Frontend Transport; Sat, 13 Apr 2024 13:00:01 +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 MWH0EPF000989E8.mail.protection.outlook.com (10.167.241.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Sat, 13 Apr 2024 13:00:01 +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.41; Sat, 13 Apr 2024 05:59:51 -0700 Received: from nvidia.com (10.126.231.35) 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.1258.12; Sat, 13 Apr 2024 05:59:49 -0700 From: Xueming Li To: =?UTF-8?q?Morten=20Br=C3=B8rup?= CC: Viacheslav Ovsiienko , dpdk stable Subject: patch 'net/mlx5: fix warning about copy length' has been queued to stable release 23.11.1 Date: Sat, 13 Apr 2024 20:49:48 +0800 Message-ID: <20240413125005.725659-108-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240413125005.725659-1-xuemingl@nvidia.com> References: <20240305094757.439387-1-xuemingl@nvidia.com> <20240413125005.725659-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.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000989E8:EE_|SA1PR12MB5640:EE_ X-MS-Office365-Filtering-Correlation-Id: 3d5dfc93-0557-4880-75fe-08dc5bb9a14e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eQra1RukMrg+QGQVF/OT8QoTa1io7DzEXOl93iHfCyxXpkn94KaLJ/+3wVBSI7Vu3frNxmK/szz28t1LaYPX+7rRW8fJY7m1ZdipdIXELZPP49F256YBp8IGja1BEd+4nf6CSqx7sQmD7kassSlE5g9cmLxYM3fK1s5g5OleEHenI/XXnVi4nUqLj74Gn6VLVH012OtTkDAuL6llffELYvxSVa/iwyn7al4dO/v0J41bAoaHJ4hFAh6zhoGfwXEJAIDGjmHarNdJSCx3Ot05ScbVD7xUvZVYFw0LH4EGaXFCTdXgSiHJEp4V/iTFHnpJWAf6EE+Znn3GIdTxnU/BptCmsQl7t6yPyqI6dry9JT8wAZ/o+Lg0f03AteqCCXxluECV2r8+e6g8L/i5WpKPQjeoCFwKckOefA497NavcRHcJ7en4qyJ4Y0jdaHMPVls2lx7dTcGV1h2FoFSfYDSxmMLfJ+L4hs829IO6VuGMhNpuNdDd4+1sTj6yBfhYe6iApGnoZmPPKisaXKq8dyF1k72xThXH8lVJBS02+gWrLwXJysfjZ4uC+o+WtKElyibBYNAJno1SHx3ekVVvTre4zFI8hfOEwhPHQKWgig06d0P40N/SEMVNZFXbWvX62D7wSXyaVGjfhKGnOO5b8w/lfkTlQ0GJxEz1cvUmu4GIjfyvZzLMoMewgCJ13mWB7xn8mhdoMg/PDJ4iBiT9K4X5I9AB5vs2EQAvAdmJlQNhVfmqlSY2Iw4LzBrWZ+6Zakf 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:(13230031)(376005)(36860700004)(1800799015)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2024 13:00:01.2181 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3d5dfc93-0557-4880-75fe-08dc5bb9a14e 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: MWH0EPF000989E8.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB5640 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 23.11.1 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/15/24. 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=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=5a8ca987e9aff8b1ca4c3d3fc477a56c33ce4bbd Thanks. Xueming Li --- >From 5a8ca987e9aff8b1ca4c3d3fc477a56c33ce4bbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20Br=C3=B8rup?= Date: Mon, 16 Jan 2023 14:07:23 +0100 Subject: [PATCH] net/mlx5: fix warning about copy length MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit c19580fb8e9ad6f153d46f731ec7cd2050b3021b ] Use RTE_PTR_ADD where copying to the offset of a field in a structure holding multiple fields, to avoid compiler warnings with decorated rte_memcpy. Fixes: 16a7dbc4f690 ("net/mlx5: make flow modify action list thread safe") Signed-off-by: Morten Brørup Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_dv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 7688d97813..b3ccc2063c 100644 --- a/drivers/net/mlx5/mlx5_flow_dv.c +++ b/drivers/net/mlx5/mlx5_flow_dv.c @@ -5965,7 +5965,7 @@ flow_dv_modify_create_cb(void *tool_ctx, void *cb_ctx) "cannot allocate resource memory"); return NULL; } - rte_memcpy(&entry->ft_type, + rte_memcpy(RTE_PTR_ADD(entry, offsetof(typeof(*entry), ft_type)), RTE_PTR_ADD(ref, offsetof(typeof(*ref), ft_type)), key_len + data_len); if (entry->ft_type == MLX5DV_FLOW_TABLE_TYPE_FDB) -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-04-13 20:43:08.328523681 +0800 +++ 0108-net-mlx5-fix-warning-about-copy-length.patch 2024-04-13 20:43:05.127753762 +0800 @@ -1 +1 @@ -From c19580fb8e9ad6f153d46f731ec7cd2050b3021b Mon Sep 17 00:00:00 2001 +From 5a8ca987e9aff8b1ca4c3d3fc477a56c33ce4bbd Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit c19580fb8e9ad6f153d46f731ec7cd2050b3021b ] @@ -14 +16,0 @@ -Cc: stable@dpdk.org @@ -23 +25 @@ -index 4badde1a9a..d434c678c8 100644 +index 7688d97813..b3ccc2063c 100644 @@ -26 +28 @@ -@@ -6205,7 +6205,7 @@ flow_dv_modify_create_cb(void *tool_ctx, void *cb_ctx) +@@ -5965,7 +5965,7 @@ flow_dv_modify_create_cb(void *tool_ctx, void *cb_ctx)