Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/129843/?format=api
http://patchwork.dpdk.org/api/patches/129843/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1691012122-10687-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": "<1691012122-10687-8-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1691012122-10687-8-git-send-email-roretzla@linux.microsoft.com", "date": "2023-08-02T21:35:16", "name": "[v10,07/13] 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": 24651, "url": "http://patchwork.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1691012122-10687-8-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 29099, "url": "http://patchwork.dpdk.org/api/series/29099/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29099", "date": "2023-08-02T21:35:10", "name": "msvc integration changes", "version": 10, "mbox": "http://patchwork.dpdk.org/series/29099/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/129843/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/129843/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 1A5A942FBA;\n\tWed, 2 Aug 2023 23:36:02 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8E90143259;\n\tWed, 2 Aug 2023 23:35:32 +0200 (CEST)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 3772D4021E\n for <dev@dpdk.org>; Wed, 2 Aug 2023 23:35:25 +0200 (CEST)", "by linux.microsoft.com (Postfix, from userid 1086)\n id 0E749238C451; Wed, 2 Aug 2023 14:35:23 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 0E749238C451", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1691012124;\n bh=w+QVq1B9vMO46jggBj+ImzeYs3RHkEKQSzKvJNzoXs8=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=KFJYhdBMXsWu0VVftfSBErps+6uoNmpBYq+LIzFkOsQmHf1M9LCvq0spOpzwBIptY\n h9GYphd/2C01z/qYHxQ2t6zuPXrThxBE2QvnowcZDpilPxBcJDhLyC2Gaj5GcVddid\n 1ZGe2R+/wT9FVQxs2D1J1Z0tCQxuDblqkMNZHRyk=", "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 v10 07/13] eal: use byte swap intrinsics", "Date": "Wed, 2 Aug 2023 14:35:16 -0700", "Message-Id": "<1691012122-10687-8-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1691012122-10687-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1680558751-17931-1-git-send-email-roretzla@linux.microsoft.com>\n <1691012122-10687-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": [ "v10", "07/13" ] }{ "id": 129843, "url": "