Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/138643/?format=api
https://patches.dpdk.org/api/patches/138643/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1710969509-20627-2-git-send-email-roretzla@linux.microsoft.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": "<1710969509-20627-2-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1710969509-20627-2-git-send-email-roretzla@linux.microsoft.com", "date": "2024-03-20T21:18:28", "name": "[1/2] eal: provide prefetch functions for MSVC", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "e6ecd5239487bb99ba4106a63d25fb8ede163a62", "submitter": { "id": 2077, "url": "https://patches.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1710969509-20627-2-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 31575, "url": "https://patches.dpdk.org/api/series/31575/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=31575", "date": "2024-03-20T21:18:29", "name": "adapt prefetch functions for MSVC", "version": 1, "mbox": "https://patches.dpdk.org/series/31575/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/138643/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/138643/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 D53B643D0A;\n\tWed, 20 Mar 2024 22:18:36 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9AF4142DFD;\n\tWed, 20 Mar 2024 22:18:33 +0100 (CET)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id F282242D80\n for <dev@dpdk.org>; Wed, 20 Mar 2024 22:18:30 +0100 (CET)", "by linux.microsoft.com (Postfix, from userid 1086)\n id 50E0B20B74C1; Wed, 20 Mar 2024 14:18:30 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 50E0B20B74C1", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1710969510;\n bh=+MkBMGzAaEGsG/xWVCr+NpNeTrguLOr8nlCWdH0EdRU=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=kwlq9A7E1/bhQ2wOQty4MZMo8ciE3ZBx5l6yvhsD5TBVmDq2FfQorZbBAGf2rZcs5\n N/R0OCXKsENv1mD/za48I2foGoN7nY6LclD4UetsW+y/GqdmQqiWIywEoMEMZxIB8T\n 7wdwBffD/OJDb6DdsCxLzN5Gpl7K1nkkozc2CvcE=", "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>,\n Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>,\n Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH 1/2] eal: provide prefetch functions for MSVC", "Date": "Wed, 20 Mar 2024 14:18:28 -0700", "Message-Id": "<1710969509-20627-2-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1710969509-20627-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1710969509-20627-1-git-send-email-roretzla@linux.microsoft.com>", "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": "MSVC does not have an equivalent of __builtin_prefetch that allows read\nor read-write parameter. Introduce conditional compile expansion of\nrte_prefetch[0-2] inline functions when building with MSVC.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n---\n lib/eal/include/generic/rte_prefetch.h | 12 ++++++++++++\n 1 file changed, 12 insertions(+)", "diff": "diff --git a/lib/eal/include/generic/rte_prefetch.h b/lib/eal/include/generic/rte_prefetch.h\nindex f9fab5e..773b3b8 100644\n--- a/lib/eal/include/generic/rte_prefetch.h\n+++ b/lib/eal/include/generic/rte_prefetch.h\n@@ -71,7 +71,11 @@\n \t * GCC docs where these integer constants are described in more detail:\n \t * https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html\n \t */\n+#ifdef RTE_TOOLCHAIN_MSVC\n+\trte_prefetch0(p);\n+#else\n \t__builtin_prefetch(p, 1, 3);\n+#endif\n }\n \n /**\n@@ -92,7 +96,11 @@\n \t * GCC docs where these integer constants are described in more detail:\n \t * https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html\n \t */\n+#ifdef RTE_TOOLCHAIN_MSVC\n+\trte_prefetch1(p);\n+#else\n \t__builtin_prefetch(p, 1, 2);\n+#endif\n }\n \n /**\n@@ -113,7 +121,11 @@\n \t * GCC docs where these integer constants are described in more detail:\n \t * https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html\n \t */\n+#ifdef RTE_TOOLCHAIN_MSVC\n+\trte_prefetch2(p);\n+#else\n \t__builtin_prefetch(p, 1, 1);\n+#endif\n }\n \n /**\n", "prefixes": [ "1/2" ] }{ "id": 138643, "url": "