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 5A92A43CE7 for ; Mon, 18 Mar 2024 16:40:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4EFA6402B8; Mon, 18 Mar 2024 16:40:54 +0100 (CET) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mails.dpdk.org (Postfix) with ESMTP id 29F9D40289 for ; Mon, 18 Mar 2024 16:40:53 +0100 (CET) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-41411421113so7090625e9.1 for ; Mon, 18 Mar 2024 08:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710776453; x=1711381253; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ehw+9jl5FpdyD0G9YCed3vMOs1/DeeaMQJPFPbi65FQ=; b=I/v6ax3caASsvsycwe8qiPn6YIr1FL2SiEzQNDGZPzGZUXqAV9MriI9/7WA/W90bG4 o1X97Ovcy2dDBCEGaPWtOKu8QzCSTTp/EBYbGK7zTLukDGfGVbLZkwXhVQblR513gA0Y WAxCeSNNjv/z0tjStFkALQijEUYfFz0UzMJGyBbVyECnbu7UmhRMruPZGps6Jsqqq5PE MB0Tk5yY08/Sq1VUu+mVmfx/qjO5emZURxshnq9YEqKb555XRg1qcsxE1w69RUKUYDuy JL424wfm6ZQPuFwZFXDXXdCnYVQ0cC3aTe1UnES0+afCHhsWVcnFOJ9gwqyycWD7OO/Y M0ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710776453; x=1711381253; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ehw+9jl5FpdyD0G9YCed3vMOs1/DeeaMQJPFPbi65FQ=; b=lFhnF2k8H+L2wNxtqIKty20SwU5goLfktpMS6I9xmD/qzRyAJk5QLVNQpOKOAPNtwt WGp3Kvrn5Pua5aJuaXEN1blTiDXZVkyYx1mvGlrcxM7ZCWgJEZHcvAAhvxvfSM1AyiSC 5eS4RBQVRAYYJ8wAEBLBLIiUHWPIiThRN6M6X1E07GZPhSRTQoSGBMQTIbp0+wEWzTrW XaqAGwVXBwq2z4pT3Urxpbxomz+I8x9lTodqph27XYyYHVefO5W7pVVI+UtSAU43YzKI 5k28NI6MEKlF177Db9am7c58v4XpSk86CtBfGR50GlvSADOMRgYU61gvJIgSpuwwJrnD ZQ3A== X-Forwarded-Encrypted: i=1; AJvYcCVRs5ykBdiUPgqdJqpmopZm+kQWJrvYiXRE/E380lcG8poWPZWp54byfbIjfmVna89R1KBiiQMkdRXeuKhs0XQ= X-Gm-Message-State: AOJu0YyFLk/B/UDEhdCBplIXimE41PBGS6mP3U3QgszVWg5JdWA2S4iH b+nuU+ocHi4MQ6WURPY4zGRdSSTVWYUa+f1w9A4A+H8S3rNOmCx8Vnx1QXn9k3c= X-Google-Smtp-Source: AGHT+IH8y+aFhABegWZpCsbYb8MCCo5cqHuunHNjJh6sLUFUSEEf7u9C32NBNvaN+MVXb5kh+wVJeQ== X-Received: by 2002:a05:600c:1f8c:b0:414:255:f248 with SMTP id je12-20020a05600c1f8c00b004140255f248mr7343771wmb.23.1710776452697; Mon, 18 Mar 2024 08:40:52 -0700 (PDT) Received: from localhost ([137.220.120.171]) by smtp.gmail.com with ESMTPSA id t6-20020a05600c450600b004133365bbc6sm18308921wmo.19.2024.03.18.08.40.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 08:40:52 -0700 (PDT) From: luca.boccassi@gmail.com 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 22.11.5 Date: Mon, 18 Mar 2024 15:39:16 +0000 Message-Id: <20240318153919.3407921-26-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240318153919.3407921-1-luca.boccassi@gmail.com> References: <20240314000957.2810803-61-luca.boccassi@gmail.com> <20240318153919.3407921-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.5 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/20/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://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/f6a26c88648f181f03fc00b3731f8174d97dc222 Thanks. Luca Boccassi --- >From f6a26c88648f181f03fc00b3731f8174d97dc222 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 [ 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 85dcc399c2..1069b84157 100644 --- a/drivers/net/mlx5/mlx5_flow_dv.c +++ b/drivers/net/mlx5/mlx5_flow_dv.c @@ -5688,7 +5688,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.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-03-18 12:58:40.421415580 +0000 +++ 0026-net-mlx5-fix-warning-about-copy-length.patch 2024-03-18 12:58:39.271349065 +0000 @@ -1 +1 @@ -From c19580fb8e9ad6f153d46f731ec7cd2050b3021b Mon Sep 17 00:00:00 2001 +From f6a26c88648f181f03fc00b3731f8174d97dc222 Mon Sep 17 00:00:00 2001 @@ -8,0 +9,2 @@ +[ upstream commit c19580fb8e9ad6f153d46f731ec7cd2050b3021b ] + @@ -14 +15,0 @@ -Cc: stable@dpdk.org @@ -23 +24 @@ -index 4badde1a9a..d434c678c8 100644 +index 85dcc399c2..1069b84157 100644 @@ -26 +27 @@ -@@ -6205,7 +6205,7 @@ flow_dv_modify_create_cb(void *tool_ctx, void *cb_ctx) +@@ -5688,7 +5688,7 @@ flow_dv_modify_create_cb(void *tool_ctx, void *cb_ctx)