Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/6636/?format=api
https://patches.dpdk.org/api/patches/6636/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1438088792-16344-1-git-send-email-medvedkinv@gmail.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": "<1438088792-16344-1-git-send-email-medvedkinv@gmail.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1438088792-16344-1-git-send-email-medvedkinv@gmail.com", "date": "2015-07-28T13:06:32", "name": "[dpdk-dev] Make the thash library arch-independent", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "60ef4a684c27435aa0e6e9468fbb92938c80e14f", "submitter": { "id": 210, "url": "https://patches.dpdk.org/api/people/210/?format=api", "name": "Vladimir Medvedkin", "email": "medvedkinv@gmail.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1438088792-16344-1-git-send-email-medvedkinv@gmail.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/6636/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/6636/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 441A1C55A;\n\tTue, 28 Jul 2015 15:09:19 +0200 (CEST)", "from mailrelay1.rambler.ru (mailrelay1.rambler.ru [81.19.66.239])\n\tby dpdk.org (Postfix) with ESMTP id 0C90BC54E\n\tfor <dev@dpdk.org>; Tue, 28 Jul 2015 15:09:17 +0200 (CEST)", "from hst119.rambler.ru (unknown [10.201.1.2])\n\tby mailrelay1.rambler.ru (Postfix) with ESMTP id 3mgdcr3KdCzJsD;\n\tTue, 28 Jul 2015 16:09:16 +0300 (MSK)" ], "From": "Vladimir Medvedkin <medvedkinv@gmail.com>", "To": "dev@dpdk.org", "Date": "Tue, 28 Jul 2015 09:06:32 -0400", "Message-Id": "<1438088792-16344-1-git-send-email-medvedkinv@gmail.com>", "X-Mailer": "git-send-email 1.8.3.2", "X-Rcpt-To": "<medvedkinv@gmail.com>, <dev@dpdk.org>", "Subject": "[dpdk-dev] [PATCH] Make the thash library arch-independent", "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": "Signed-off-by: Vladimir Medvedkin <medvedkinv@gmail.com>\n---\n lib/librte_hash/rte_thash.h | 21 ++++++++++++++++++++-\n 1 file changed, 20 insertions(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_hash/rte_thash.h b/lib/librte_hash/rte_thash.h\nindex 6156e8a..ddb650a 100644\n--- a/lib/librte_hash/rte_thash.h\n+++ b/lib/librte_hash/rte_thash.h\n@@ -53,14 +53,23 @@ extern \"C\" {\n \n #include <stdint.h>\n #include <rte_byteorder.h>\n-#include <rte_vect.h>\n #include <rte_ip.h>\n \n+#ifdef __SSE3__\n+#include <rte_vect.h>\n+#endif /* __SSE3__ */\n+\n+#ifndef XMM_SIZE\n+#define XMM_SIZE\t16\n+#endif /* XMM_SIZE */\n+\n+#ifdef __SSE3__\n /* Byte swap mask used for converting IPv6 address\n * 4-byte chunks to CPU byte order\n */\n static const __m128i rte_thash_ipv6_bswap_mask = {\n \t\t0x0405060700010203, 0x0C0D0E0F08090A0B};\n+#endif /* __SSE3__ */\n \n /**\n * length in dwords of input tuple to\n@@ -157,12 +166,22 @@ rte_convert_rss_key(const uint32_t *orig, uint32_t *targ, int len)\n static inline void\n rte_thash_load_v6_addrs(const struct ipv6_hdr *orig, union rte_thash_tuple *targ)\n {\n+#ifdef __SSE__\n \t__m128i ipv6 = _mm_loadu_si128((const __m128i *)orig->src_addr);\n \t*(__m128i *)targ->v6.src_addr =\n \t\t\t_mm_shuffle_epi8(ipv6, rte_thash_ipv6_bswap_mask);\n \tipv6 = _mm_loadu_si128((const __m128i *)orig->dst_addr);\n \t*(__m128i *)targ->v6.dst_addr =\n \t\t\t_mm_shuffle_epi8(ipv6, rte_thash_ipv6_bswap_mask);\n+#else\n+\tint i;\n+\tfor (i = 0; i < 4; i++) {\n+\t\t*((uint32_t *)targ->v6.src_addr + i) =\n+\t\t\trte_be_to_cpu_32(*((const uint32_t *)orig->src_addr + i));\n+\t\t*((uint32_t *)targ->v6.dst_addr + i) =\n+\t\t\trte_be_to_cpu_32(*((const uint32_t *)orig->dst_addr + i));\n+\t}\n+#endif /* __SSE3__ */\n }\n \n /**\n", "prefixes": [ "dpdk-dev" ] }{ "id": 6636, "url": "