From: Pablo de Lara <pablo.de.lara.guarch@intel.com>
To: dev@dpdk.org
Cc: bruce.richardson@intel.com,
Pablo de Lara <pablo.de.lara.guarch@intel.com>
Subject: [dpdk-dev] [PATCH v3 1/2] hash: use RTE_ARCH_X86 macro for X86 systems
Date: Fri, 1 Apr 2016 16:03:48 +0100 [thread overview]
Message-ID: <1459523029-44243-2-git-send-email-pablo.de.lara.guarch@intel.com> (raw)
In-Reply-To: <1459523029-44243-1-git-send-email-pablo.de.lara.guarch@intel.com>
Instead of using RTE_ARCH_X86_64, RTE_ARCH_X86_32
and RTE_ARCH_I686, use directly RTTE_ARCH_X86
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
lib/librte_hash/rte_cuckoo_hash.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/librte_hash/rte_cuckoo_hash.c b/lib/librte_hash/rte_cuckoo_hash.c
index 71b5b76..b9b0b65 100644
--- a/lib/librte_hash/rte_cuckoo_hash.c
+++ b/lib/librte_hash/rte_cuckoo_hash.c
@@ -59,7 +59,7 @@
#include <rte_compat.h>
#include "rte_hash.h"
-#if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) || defined(RTE_ARCH_X86_X32)
+#if defined(RTE_ARCH_X86)
#include "rte_cmp_x86.h"
#endif
@@ -287,8 +287,7 @@ rte_hash_create(const struct rte_hash_parameters *params)
* If x86 architecture is used, select appropriate compare function,
* which may use x86 instrinsics, otherwise use memcmp
*/
-#if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) ||\
- defined(RTE_ARCH_X86_X32) || defined(RTE_ARCH_ARM64)
+#if defined(RTE_ARCH_X86) || defined(RTE_ARCH_ARM64)
/* Select function to compare keys */
switch (params->key_len) {
case 16:
--
2.5.5
next prev parent reply other threads:[~2016-04-01 15:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-24 13:56 [dpdk-dev] [PATCH] hash: fix to support multi process Pablo de Lara
2016-03-25 14:41 ` Bruce Richardson
2016-03-25 15:08 ` De Lara Guarch, Pablo
2016-03-30 17:34 ` [dpdk-dev] [PATCH v2] " Pablo de Lara
2016-04-01 13:07 ` Thomas Monjalon
2016-04-01 14:08 ` De Lara Guarch, Pablo
2016-04-01 15:03 ` [dpdk-dev] [PATCH v3 0/2] Multi-process support in hash library Pablo de Lara
2016-04-01 15:03 ` Pablo de Lara [this message]
2016-04-01 15:03 ` [dpdk-dev] [PATCH v3 2/2] hash: fix to support multi process Pablo de Lara
2016-04-01 16:57 ` [dpdk-dev] [PATCH v3 0/2] Multi-process support in hash library Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1459523029-44243-2-git-send-email-pablo.de.lara.guarch@intel.com \
--to=pablo.de.lara.guarch@intel.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).