Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/129469/?format=api
http://patchwork.dpdk.org/api/patches/129469/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1689094157-16873-8-git-send-email-roretzla@linux.microsoft.com/", "project": { "id": 1, "url": "http://patchwork.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": "<1689094157-16873-8-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1689094157-16873-8-git-send-email-roretzla@linux.microsoft.com", "date": "2023-07-11T16:49:10", "name": "[v9,07/14] eal: use byte swap intrinsics", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "3da1c4d642e4d6b0b65200a0f6003d4209984d04", "submitter": { "id": 2077, "url": "http://patchwork.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1689094157-16873-8-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 28906, "url": "http://patchwork.dpdk.org/api/series/28906/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=28906", "date": "2023-07-11T16:49:04", "name": "msvc integration changes", "version": 9, "mbox": "http://patchwork.dpdk.org/series/28906/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/129469/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/129469/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 D0E9F42E48;\n\tTue, 11 Jul 2023 18:50:44 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1210E42D62;\n\tTue, 11 Jul 2023 18:49:37 +0200 (CEST)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 4DD7D41156\n for <dev@dpdk.org>; Tue, 11 Jul 2023 18:49:20 +0200 (CEST)", "by linux.microsoft.com (Postfix, from userid 1086)\n id DC1CF21C426A; Tue, 11 Jul 2023 09:49:18 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com DC1CF21C426A", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1689094158;\n bh=w+QVq1B9vMO46jggBj+ImzeYs3RHkEKQSzKvJNzoXs8=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=AKsirmci2gadI0T5ViYkYxFSHHtuwLup2QqcMs1hcOIOMjc/bOLP40uVw0d2TYt7C\n /LG9Zs2Z1P853+D47F0AWPTWqVBawH1Q+Z7Oyvn0sO4cj6wffh+pskwc363WdBUQZK\n Y5kx1He2lOeytkSdfrpaDPNgsXGm/yfLkc5rERvY=", "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 Ciara Power <ciara.power@intel.com>, thomas@monjalon.net,\n david.marchand@redhat.com, mb@smartsharesystems.com,\n Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH v9 07/14] eal: use byte swap intrinsics", "Date": "Tue, 11 Jul 2023 09:49:10 -0700", "Message-Id": "<1689094157-16873-8-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1689094157-16873-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1680558751-17931-1-git-send-email-roretzla@linux.microsoft.com>\n <1689094157-16873-1-git-send-email-roretzla@linux.microsoft.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "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": "Inline assembly is not supported for MSVC x64 instead expand\nuse _byteswap_u{ushort,ulong,uint64} intrinsics instead.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\nAcked-by: Morten Brørup <mb@smartsharesystems.com>\n---\n lib/eal/include/generic/rte_byteorder.h | 11 +++++++++++\n lib/eal/x86/include/rte_byteorder.h | 4 ++++\n 2 files changed, 15 insertions(+)", "diff": "diff --git a/lib/eal/include/generic/rte_byteorder.h b/lib/eal/include/generic/rte_byteorder.h\nindex a67e1d7..1e32a1b 100644\n--- a/lib/eal/include/generic/rte_byteorder.h\n+++ b/lib/eal/include/generic/rte_byteorder.h\n@@ -234,6 +234,7 @@\n #endif /* __DOXYGEN__ */\n \n #ifdef RTE_FORCE_INTRINSICS\n+#ifndef RTE_TOOLCHAIN_MSVC\n #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)\n #define rte_bswap16(x) __builtin_bswap16(x)\n #endif\n@@ -241,6 +242,16 @@\n #define rte_bswap32(x) __builtin_bswap32(x)\n \n #define rte_bswap64(x) __builtin_bswap64(x)\n+#else\n+/*\n+ * note: we may want to #pragma intrsinsic(_byteswap_u{short,long,uint64})\n+ */\n+#define rte_bswap16(x) _byteswap_ushort(x)\n+\n+#define rte_bswap32(x) _byteswap_ulong(x)\n+\n+#define rte_bswap64(x) _byteswap_uint64(x)\n+#endif\n \n #endif\n \ndiff --git a/lib/eal/x86/include/rte_byteorder.h b/lib/eal/x86/include/rte_byteorder.h\nindex a2dfecc..3d6e58e 100644\n--- a/lib/eal/x86/include/rte_byteorder.h\n+++ b/lib/eal/x86/include/rte_byteorder.h\n@@ -18,6 +18,7 @@\n #define RTE_BYTE_ORDER RTE_LITTLE_ENDIAN\n #endif\n \n+#ifndef RTE_TOOLCHAIN_MSVC\n /*\n * An architecture-optimized byte swap for a 16-bit value.\n *\n@@ -69,6 +70,7 @@ static inline uint32_t rte_arch_bswap32(uint32_t _x)\n \t\t\t\t rte_arch_bswap16(x)))\n #endif\n #endif\n+#endif\n \n #define rte_cpu_to_le_16(x) (x)\n #define rte_cpu_to_le_32(x) (x)\n@@ -86,11 +88,13 @@ static inline uint32_t rte_arch_bswap32(uint32_t _x)\n #define rte_be_to_cpu_32(x) rte_bswap32(x)\n #define rte_be_to_cpu_64(x) rte_bswap64(x)\n \n+#ifndef RTE_TOOLCHAIN_MSVC\n #ifdef RTE_ARCH_I686\n #include \"rte_byteorder_32.h\"\n #else\n #include \"rte_byteorder_64.h\"\n #endif\n+#endif\n \n #ifdef __cplusplus\n }\n", "prefixes": [ "v9", "07/14" ] }{ "id": 129469, "url": "