Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/8027/?format=api
https://patches.dpdk.org/api/patches/8027/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1445877458-31052-10-git-send-email-viktorin@rehivetech.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": "<1445877458-31052-10-git-send-email-viktorin@rehivetech.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1445877458-31052-10-git-send-email-viktorin@rehivetech.com", "date": "2015-10-26T16:37:31", "name": "[dpdk-dev,v2,09/16] eal/arm: use vector memcpy only when NEON is enabled", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "da4684d6c5e0435eeaf1f3b9eaf3143e640af20c", "submitter": { "id": 292, "url": "https://patches.dpdk.org/api/people/292/?format=api", "name": "Jan Viktorin", "email": "viktorin@rehivetech.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1445877458-31052-10-git-send-email-viktorin@rehivetech.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/8027/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/8027/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id C45698E83;\n\tMon, 26 Oct 2015 17:39:42 +0100 (CET)", "from wes1-so1.wedos.net (wes1-so1.wedos.net [46.28.106.15])\n\tby dpdk.org (Postfix) with ESMTP id 42C478D85\n\tfor <dev@dpdk.org>; Mon, 26 Oct 2015 17:39:31 +0100 (CET)", "from pcviktorin.fit.vutbr.cz (pcviktorin.fit.vutbr.cz\n\t[147.229.13.147])\n\tby wes1-so1.wedos.net (Postfix) with ESMTPSA id 3nl21v0c9Hz53d;\n\tMon, 26 Oct 2015 17:39:31 +0100 (CET)" ], "From": "Jan Viktorin <viktorin@rehivetech.com>", "To": "Thomas Monjalon <thomas.monjalon@6wind.com>,\n\tDavid Hunt <david.hunt@intel.com>, dev@dpdk.org", "Date": "Mon, 26 Oct 2015 17:37:31 +0100", "Message-Id": "<1445877458-31052-10-git-send-email-viktorin@rehivetech.com>", "X-Mailer": "git-send-email 2.6.1", "In-Reply-To": "<1445877458-31052-1-git-send-email-viktorin@rehivetech.com>", "References": "<1445877458-31052-1-git-send-email-viktorin@rehivetech.com>", "Subject": "[dpdk-dev] [PATCH v2 09/16] eal/arm: use vector memcpy only when\n\tNEON is enabled", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "The GCC can be configured to avoid using NEON extensions.\nFor that purpose, we provide just the memcpy implementation\nof the rte_memcpy.\n\nBased on the patch by David Hunt and Armuta Zende:\n\n lib: added support for armv7 architecture\n\nSigned-off-by: Jan Viktorin <viktorin@rehivetech.com>\nSigned-off-by: Amruta Zende <amruta.zende@intel.com>\nSigned-off-by: David Hunt <david.hunt@intel.com>\n---\n .../common/include/arch/arm/rte_memcpy.h | 59 +++++++++++++++++++++-\n 1 file changed, 57 insertions(+), 2 deletions(-)", "diff": "diff --git a/lib/librte_eal/common/include/arch/arm/rte_memcpy.h b/lib/librte_eal/common/include/arch/arm/rte_memcpy.h\nindex ac885e9..75e8bda 100644\n--- a/lib/librte_eal/common/include/arch/arm/rte_memcpy.h\n+++ b/lib/librte_eal/common/include/arch/arm/rte_memcpy.h\n@@ -35,8 +35,6 @@\n \n #include <stdint.h>\n #include <string.h>\n-/* ARM NEON Intrinsics are used to copy data */\n-#include <arm_neon.h>\n \n #ifdef __cplusplus\n extern \"C\" {\n@@ -44,6 +42,11 @@ extern \"C\" {\n \n #include \"generic/rte_memcpy.h\"\n \n+#ifdef __ARM_NEON_FP\n+\n+/* ARM NEON Intrinsics are used to copy data */\n+#include <arm_neon.h>\n+\n static inline void\n rte_mov16(uint8_t *dst, const uint8_t *src)\n {\n@@ -263,6 +266,58 @@ rte_memcpy_func(void *dst, const void *src, size_t n)\n \treturn ret;\n }\n \n+#else\n+\n+static inline void\n+rte_mov16(uint8_t *dst, const uint8_t *src)\n+{\n+\tmemcpy(dst, src, 16);\n+}\n+\n+static inline void\n+rte_mov32(uint8_t *dst, const uint8_t *src)\n+{\n+\tmemcpy(dst, src, 32);\n+}\n+\n+static inline void\n+rte_mov48(uint8_t *dst, const uint8_t *src)\n+{\n+\tmemcpy(dst, src, 48);\n+}\n+\n+static inline void\n+rte_mov64(uint8_t *dst, const uint8_t *src)\n+{\n+\tmemcpy(dst, src, 64);\n+}\n+\n+static inline void\n+rte_mov128(uint8_t *dst, const uint8_t *src)\n+{\n+\tmemcpy(dst, src, 128);\n+}\n+\n+static inline void\n+rte_mov256(uint8_t *dst, const uint8_t *src)\n+{\n+\tmemcpy(dst, src, 256);\n+}\n+\n+static inline void *\n+rte_memcpy(void *dst, const void *src, size_t n)\n+{\n+\treturn memcpy(dst, src, n);\n+}\n+\n+static inline void *\n+rte_memcpy_func(void *dst, const void *src, size_t n)\n+{\n+\treturn memcpy(dst, src, n);\n+}\n+\n+#endif /* __ARM_NEON_FP */\n+\n #ifdef __cplusplus\n }\n #endif\n", "prefixes": [ "dpdk-dev", "v2", "09/16" ] }{ "id": 8027, "url": "