Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/122100/?format=api
https://patches.dpdk.org/api/patches/122100/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230116130724.50277-3-mb@smartsharesystems.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20230116130724.50277-3-mb@smartsharesystems.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230116130724.50277-3-mb@smartsharesystems.com", "date": "2023-01-16T13:07:23", "name": "[v7,3/4] net/mlx5: fix warning about rte_memcpy length", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "c49d7b45f9ef095a2723e536222873ff404ea1d7", "submitter": { "id": 591, "url": "https://patches.dpdk.org/api/people/591/?format=api", "name": "Morten Brørup", "email": "mb@smartsharesystems.com" }, "delegate": { "id": 3268, "url": "https://patches.dpdk.org/api/users/3268/?format=api", "username": "rasland", "first_name": "Raslan", "last_name": "Darawsheh", "email": "rasland@nvidia.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230116130724.50277-3-mb@smartsharesystems.com/mbox/", "series": [ { "id": 26561, "url": "https://patches.dpdk.org/api/series/26561/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=26561", "date": "2023-01-16T13:07:21", "name": "[v7,1/4] net/bnx2x: fix warnings about rte_memcpy lengths", "version": 7, "mbox": "https://patches.dpdk.org/series/26561/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/122100/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/122100/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A1BEB423F0;\n\tMon, 16 Jan 2023 14:07:39 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id AA73B42D1F;\n\tMon, 16 Jan 2023 14:07:29 +0100 (CET)", "from smartserver.smartsharesystems.com\n (smartserver.smartsharesystems.com [77.243.40.215])\n by mails.dpdk.org (Postfix) with ESMTP id D976540691\n for <dev@dpdk.org>; Mon, 16 Jan 2023 14:07:26 +0100 (CET)", "from dkrd2.smartsharesys.local ([192.168.4.12]) by\n smartserver.smartsharesystems.com with Microsoft SMTPSVC(6.0.3790.4675);\n Mon, 16 Jan 2023 14:07:26 +0100" ], "From": "=?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com>", "To": "dev@dpdk.org, roretzla@linux.microsoft.com, rmody@marvell.com,\n timothy.mcdaniel@intel.com, matan@nvidia.com, viacheslavo@nvidia.com", "Cc": "ruifeng.wang@arm.com, zhoumin@loongson.cn, drc@linux.vnet.ibm.com,\n kda@semihalf.com, bruce.richardson@intel.com, konstantin.v.ananyev@yandex.ru,\n\t=?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com>,\n xuemingl@nvidia.com", "Subject": "[PATCH v7 3/4] net/mlx5: fix warning about rte_memcpy length", "Date": "Mon, 16 Jan 2023 14:07:23 +0100", "Message-Id": "<20230116130724.50277-3-mb@smartsharesystems.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20230116130724.50277-1-mb@smartsharesystems.com>", "References": "<20221202153432.131023-1-mb@smartsharesystems.com>\n <20230116130724.50277-1-mb@smartsharesystems.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "X-OriginalArrivalTime": "16 Jan 2023 13:07:26.0537 (UTC)\n FILETIME=[7B16AB90:01D929AB]", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Use RTE_PTR_ADD where copying to the offset of a field in a structure\nholding multiple fields, to avoid compiler warnings with decorated\nrte_memcpy.\n\nFixes: 16a7dbc4f69006cc1c96ca2a2c6d3e3c51a2ff50 (\"net/mlx5: make flow modify action list thread safe\")\nCc: xuemingl@nvidia.com\nCc: matan@nvidia.com\nCc: viacheslavo@nvidia.com\n\nSigned-off-by: Morten Brørup <mb@smartsharesystems.com>\n---\nv7:\n* No changes.\nv6:\n* Add Fixes to patch description.\nv5:\n* First patch in series.\n---\n drivers/net/mlx5/mlx5_flow_dv.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c\nindex 62c38b87a1..dd9f5fda1a 100644\n--- a/drivers/net/mlx5/mlx5_flow_dv.c\n+++ b/drivers/net/mlx5/mlx5_flow_dv.c\n@@ -5662,7 +5662,7 @@ flow_dv_modify_create_cb(void *tool_ctx, void *cb_ctx)\n \t\t\t\t \"cannot allocate resource memory\");\n \t\treturn NULL;\n \t}\n-\trte_memcpy(&entry->ft_type,\n+\trte_memcpy(RTE_PTR_ADD(entry, offsetof(typeof(*entry), ft_type)),\n \t\t RTE_PTR_ADD(ref, offsetof(typeof(*ref), ft_type)),\n \t\t key_len + data_len);\n \tif (entry->ft_type == MLX5DV_FLOW_TABLE_TYPE_FDB)\n", "prefixes": [ "v7", "3/4" ] }{ "id": 122100, "url": "